import styled from 'styled-components/native'; import {SafeAreaView} from 'react-native-safe-area-context'; import {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scroll-view'; import { heightPercentageToDP as hp, widthPercentageToDP as wp, } from 'react-native-responsive-screen'; import Button from '@components/Button'; import THEME from '@styles/theme'; import FONTS from '@assets/fonts'; 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)` background-color: ${THEME?.PRIMARY?.MAIN}; max-height: ${hp(70)}px; border-top-left-radius: ${hp(2)}px; border-top-right-radius: ${hp(2)}px; padding: ${wp(5)}px; position: absolute; bottom: 0; right: 0; left: 0; `; export const Footer = styled.View<{isFlexDirectionRow?: boolean}>` flex-direction: ${props => (props?.isFlexDirectionRow ? 'row' : 'column')}; margin-top: ${hp(2)}px; margin-bottom: ${hp(2)}px; `; export const FooterButton = styled(Button)` flex: 1; `; export const FooterButtonLabelStyle = { fontSize: hp(1.8), }; export const Title = styled.Text` color: #ffffff; font-family: ${FONTS?.MEDIUM}; font-size: ${hp(2)}px; `; export const SubTitle = styled.Text` color: ${THEME?.SECONDARY?.LIGHT}; font-family: ${FONTS?.MEDIUM}; font-size: ${hp(1.8)}px; padding-top: ${hp(1)}px; `; export const Body = styled(KeyboardAwareScrollView)` margin-top: ${hp(3)}px; flex: 1; `; export const SharedSuccessfully = styled.View` align-items: center; `; export const SharedSuccessfullyTitle = styled.Text` color: #ffffff; font-family: ${FONTS?.MEDIUM}; font-size: ${hp(2)}px; padding-bottom: ${hp(2)}px; padding-top: ${hp(2)}px; `; export const SharedUnSuccessfullyTitle = styled.Text` color: #ffffff; font-family: ${FONTS?.MEDIUM}; font-size: ${hp(1.7)}px; padding-bottom: ${hp(2)}px; padding-top: ${hp(1)}px; text-align: center; width: ${wp(60)}px; `; export const SharedSuccessfullySubTitle = styled.Text` color: ${THEME?.SECONDARY?.LIGHT}; font-family: ${FONTS?.MEDIUM}; padding-right: ${wp(1)}px; `; export const SharedSuccessfullySubTitleWrapper = styled.View` flex-direction: row; padding-bottom: ${hp(2)}px; `; export const CredentialWrapper = styled.View<{error?: boolean}>` background-color: #121436; padding: ${wp(4)}px; margin-bottom: ${hp(2)}px; flex-direction: row; align-items: center; border-radius: ${wp(3)}px; opacity: ${props => (props?.error ? 0.5 : 1)}; `; export const CredentialName = styled.Text` color: white; padding-left: ${wp(4)}px; font-family: ${FONTS.REGULAR}; font-size: ${hp(1.7)}px; flex: 1; `; export const CredentialStatusWrapper = styled.View<{error?: boolean}>` background: ${props => props?.error ? 'rgba(205, 116, 116, 0.1)' : 'rgba(159, 210, 147, 0.1)'}; border-radius: ${hp(2)}px; padding-top: ${wp(2)}px; padding-bottom: ${wp(2)}px; padding-left: ${wp(4)}px; padding-right: ${wp(4)}px; `; export const CredentialStatus = styled.Text<{error?: boolean}>` color: ${props => (props?.error ? '#cd7474' : '#9fd293')}; `;