diff --git a/src/components/Pager.tsx b/src/components/Pager.tsx index 7527194..ef80173 100644 --- a/src/components/Pager.tsx +++ b/src/components/Pager.tsx @@ -7,25 +7,35 @@ export const Pager: React.FC<{ onPrev: () => void; hasNext: boolean; hasPrev: boolean; -}> = (props) => { + prevKey?: "l2"; + nextKey?: "r2"; +}> = ({ currentText, prevKey, hasNext, hasPrev, onNext, onPrev, nextKey }) => { return ( + {prevKey && ( + {prevKey} + )} + < -
{props.currentText}
+
{currentText}
> + + {nextKey && ( + {nextKey} + )}
); };