import { cn } from "heroui-native"; import { type PropsWithChildren } from "react"; import { ScrollView, View, type ScrollViewProps, type ViewProps } from "react-native"; import Animated, { type AnimatedProps } from "react-native-reanimated"; import { useSafeAreaInsets } from "react-native-safe-area-context"; const AnimatedView = Animated.createAnimatedComponent(View); type Props = AnimatedProps & { className?: string; isScrollable?: boolean; scrollViewProps?: Omit; }; export function Container({ children, className, isScrollable = true, scrollViewProps, ...props }: PropsWithChildren) { const insets = useSafeAreaInsets(); return ( {isScrollable ? ( {children} ) : ( {children} )} ); }