import styled from 'styled-components/native'; import {heightPercentageToDP as hp} from 'react-native-responsive-screen'; import {SafeAreaView} from 'react-native-safe-area-context'; import THEME from '@styles/theme'; export const Overlay = styled.TouchableOpacity` position: absolute; flex: 1; justify-content: flex-end; top: 0; bottom: 0; right: 0; left: 0; background-color: rgba(0, 0, 0, 0.88); height: 100%; `; export const Wrapper = styled(SafeAreaView)<{size: 'sm' | 'md' | 'lg' | 'xl'}>` background-color: ${THEME?.PRIMARY?.MAIN}; height: ${props => props?.size === 'sm' ? hp(25) : props?.size === 'md' ? hp(50) : props?.size === 'lg' ? hp(75) : hp(90)}px; border-top-left-radius: ${hp(2)}px; border-top-right-radius: ${hp(2)}px; position: absolute; bottom: 0; right: 0; left: 0; `;