import { type BoxProps, type VariantProps, createRestyleComponent } from "@shopify/restyle"; import type { Theme } from "@themes/Theme"; import { buttonVariants } from "@themes/Variants"; import Box from "./Box"; const ButtonBase = createRestyleComponent< VariantProps & BoxProps & { children: React.ReactNode; }, Theme >([buttonVariants], Box); export default ButtonBase;