22 lines
454 B
TypeScript
22 lines
454 B
TypeScript
import React from "react";
|
|
import { View, ViewProps } from "react-native";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface ShadowWrapperProps extends ViewProps {
|
|
level?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function ShadowWrapper({
|
|
className,
|
|
children,
|
|
...props
|
|
}: ShadowWrapperProps) {
|
|
return (
|
|
<View className={cn(className)} {...props}>
|
|
{children}
|
|
</View>
|
|
);
|
|
}
|