import { Container, StyleSystemThemedProps, TouchableWithoutFeedback } from 'components/layout'; import { Visible } from 'components/visible'; import { metrics } from 'config'; import { FC, useCallback } from 'react'; import { COLOR_VALUES } from 'theme/color'; const { Z_INDEX } = metrics; export const UnderLay: FC = ({ isTransparent, isActive, setIsActive, children, ...props }) => { const closeSheet = useCallback(() => { setIsActive(false); }, [setIsActive]); const backgroundColor = isTransparent ? 'transparent' : COLOR_VALUES['underlay-dark-06']; return ( {children} ); }; type UnderLayType = StyleSystemThemedProps & UnderLayProps; export interface UnderLayProps { isActive: boolean; children: JSX.Element; isTransparent?: boolean; setIsActive: (value: boolean) => void; }