import { BottomSheetModal, BottomSheetBackdrop, BottomSheetBackdropProps, BottomSheetView, } from '@gorhom/bottom-sheet' import { useCallback } from 'react' import { Dimensions, Platform } from 'react-native' import { BottomSheetHeader } from './BottomSheetHeader' import { BottomSheetScrollView } from './BottomSheetScrollables' import { BottomSheetProps } from './types' import { Box } from '@/design-system/components/Box' import { useSafeAreaInsets, useTheme } from '@/hooks' const screenHeight = Dimensions.get('screen').height export { BottomSheetScrollView } export const BottomSheet = ({ children, title, iconConfig, isDivider = true, showCloseButton = true, numberOfTitleLines, bottomSheetRef, }: BottomSheetProps) => { const { top } = useSafeAreaInsets() const { colors } = useTheme() const handleClose = useCallback(() => { bottomSheetRef?.current?.snapToPosition(-1) }, [bottomSheetRef]) const renderBackdrop = useCallback( (props: BottomSheetBackdropProps) => ( ), [] ) return ( {isDivider && } {children} ) }