const imgLine98Stroke = "https://www.figma.com/api/mcp/asset/76fc20a1-3532-4d66-94d4-364035c7922c";
const imgLine69Stroke = "https://www.figma.com/api/mcp/asset/1826ccfe-e436-415e-8da1-ec57fd870055";
const imgLine69Stroke1 = "https://www.figma.com/api/mcp/asset/8173b43b-9cec-42bb-b140-99adc58630cd";
type PaginationProps = {
className?: string;
children?: React.ReactNode | null;
showPageSize?: boolean;
showTotal?: boolean;
type?: "Classic" | "Simple" | "Small";
};
export default function Pagination({ className, children = null, showPageSize = true, showTotal = true, type = "Classic" }: PaginationProps) {
const isSimple = type === "Simple";
const isSmall = type === "Small";
return (
{showTotal && (
)}
{["Classic", "Simple"].includes(type) && showPageSize && (
)}
{type === "Classic" && (
)}
{isSmall && showPageSize && (
)}
{isSmall && (
)}
{isSimple && (
)}
);
}SUPER CRITICAL: The generated React+Tailwind code MUST be converted to match the target project's technology stack and styling system.
1. Analyze the target codebase to identify: technology stack, styling approach, component patterns, and design tokens
2. Convert React syntax to the target framework/library
3. Transform all Tailwind classes to the target styling system while preserving exact visual design
4. Follow the project's existing patterns and conventions
DO NOT install any Tailwind as a dependency unless the user instructs you to do so.
Node ids have been added to the code as data attributes, e.g. `data-node-id="1:2"`.These styles are contained in the design: Roboto/14 body: Font(family: "Roboto", style: Regular, size: 14, weight: 400, lineHeight: 1.5, letterSpacing: 0).Component descriptions: The following components have usage descriptions or documentation links defined in Figma. These descriptions provide important context about the intended usage, best practices, and any constraints for each component. Follow these guidelines when implementing or using these components.
## Type=Classic
**Node ID:** 4884:7181
Pagination with previous, numbered pages (1-5, active=1 uses brand color), and next buttons. Uses design system text styles, colors, and icons.
## Type=Small
**Node ID:** 4907:6738
Pagination with previous, numbered pages (1-5, active=1 uses brand color), and next buttons. Uses design system text styles, colors, and icons.
## Type=Simple
**Node ID:** 4894:7211
Pagination with previous, numbered pages (1-5, active=1 uses brand color), and next buttons. Uses design system text styles, colors, and icons.Images and SVGs will be stored as constants, e.g. const image = 'https://www.figma.com/api/mcp/asset/550e8400-e29b-41d4-a716-446655440000'. These constants will be used in the code as the source for the image, ex:
. Image assets are stored on a remote server for 7 days and can be fetched using the provided URLs until they expire.