import { Icon } from "@/components/ui/Icon"; import { array, externalProps, get, str, type CatalogRecord, } from "@/features/catalog/model"; export function Pagination({ pagination, }: { pagination: CatalogRecord | undefined; }) { if (!pagination || !get(pagination, "Visible")) return null; const previous = !!get(pagination, "HasPrev"), next = !!get(pagination, "HasNext"); const arrow = (forward = false) => ( <> {forward ? "下一页" : "上一页"} ); return ( ); }