mirror of
https://github.com/khairul169/home-lab.git
synced 2025-04-28 08:39:34 +07:00
14 lines
371 B
TypeScript
14 lines
371 B
TypeScript
import { cn } from "@/lib/utils";
|
|
import { ComponentPropsWithClassName } from "@/types/components";
|
|
import { View } from "react-native";
|
|
|
|
type Props = ComponentPropsWithClassName<typeof View>;
|
|
|
|
const Box = ({ className, style, ...props }: Props) => {
|
|
return (
|
|
<View style={{ ...cn(className), ...((style || {}) as any) }} {...props} />
|
|
);
|
|
};
|
|
|
|
export default Box;
|