remove unused Pager

This commit is contained in:
tmshv committed 2022-09-06 20:56:07 +03:00
1 parent 84a2d8551f
commit cced734dc4
1 file changed
-20
-20
View File
@@ -1,20 +0,0 @@
import { Block, BlockProps } from "../Block"
import { Button } from "@/ui/Button"
import { Spacer } from "../Spacer"
export type PagerProps = Omit<BlockProps, "direction"> & {
nextHref: string | null
prevHref: string | null
}
export const Pager: React.FC<PagerProps> = ({ prevHref, nextHref, ...props }) => (
<Block {...props} direction={"horizontal"}>
{!prevHref ? null : (
<Button href={prevHref}>Предыдущая страница</Button>
)}
<Spacer />
{!nextHref ? null : (
<Button href={nextHref}>Следущая страница</Button>
)}
</Block>
)