diff --git a/src/components/Pager/index.tsx b/src/components/Pager/index.tsx index d349add5..f99889d0 100644 --- a/src/components/Pager/index.tsx +++ b/src/components/Pager/index.tsx @@ -1,20 +1,20 @@ -import { Block } from '../Block' +import { Block, BlockProps } from '../Block' import { Button } from '../Button' import { Spacer } from '../Spacer' -export type PagerProps = { +export type PagerProps = Omit & { nextHref: string | null prevHref: string | null } -export const Pager: React.FC = props => ( - - {!props.prevHref ? null : ( - +export const Pager: React.FC = ({ prevHref, nextHref, ...props }) => ( + + {!prevHref ? null : ( + )} - {!props.nextHref ? null : ( - + {!nextHref ? null : ( + )} )