import { type BoxProps, type VariantProps, createRestyleComponent } from "@shopify/restyle";
import type { Theme } from "@themes/Theme";
import { cardVariants } from "@themes/Variants";
import Box from "./bases/Box";

const Card = createRestyleComponent<
	VariantProps<Theme, "cardVariants"> &
		BoxProps<Theme> & {
			children: React.ReactNode;
		},
	Theme
>([cardVariants], Box);

export default Card;
