remove unused Pager
This commit is contained in:
1 parent
84a2d8551f
commit
cced734dc4
1 file changed
-20
@@ -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>
|
||||
)
|
||||
Reference in new issue
Block a user