14 lines
371 B
TypeScript
Raw Normal View History

2024-03-09 18:48:49 +07:00
import { cn } from "@/lib/utils";
import { ComponentPropsWithClassName } from "@/types/components";
import { View } from "react-native";
type Props = ComponentPropsWithClassName<typeof View>;
2024-03-15 09:05:49 +07:00
const Box = ({ className, style, ...props }: Props) => {
return (
<View style={{ ...cn(className), ...((style || {}) as any) }} {...props} />
);
2024-03-09 18:48:49 +07:00
};
export default Box;