import { cx } from "@/utils/cx"; import type { PaginationRootProps } from "./pagination-base"; import { Pagination } from "./pagination-base"; interface PaginationLineProps extends Omit { /** The size of the pagination line. */ size?: "md" | "lg"; /** Whether the pagination is displayed in a card. */ framed?: boolean; } export const PaginationLine = ({ framed, className, size = "md", ...props }: PaginationLineProps) => { const sizes = { md: { root: cx("gap-2", framed && "p-2"), button: "h-1.5 w-full after:-inset-x-1.5 after:-inset-y-2", }, lg: { root: cx("gap-3", framed && "p-3"), button: "h-2 w-full after:-inset-x-2 after:-inset-y-3", }, }; return ( {({ pages }) => pages.map((page, index) => page.type === "page" ? ( ) : ( ), ) } ); };