import Icon from '@components/Icon' import CustomText from '@components/Text' import { StyleConstants } from '@utils/styles/constants' import { useTheme } from '@utils/styles/ThemeManager' import React from 'react' import { useTranslation } from 'react-i18next' import { View } from 'react-native' import { PlaceholderLine } from 'rn-placeholder' export interface Props { account: Mastodon.Account | undefined hidden?: boolean } const AccountInformationCreated: React.FC = ({ account, hidden = false }) => { if (hidden) { return null } const { i18n } = useTranslation() const { colors } = useTheme() const { t } = useTranslation('screenTabs') if (account) { return ( {t('shared.account.created_at', { date: new Date(account.created_at || '').toLocaleDateString(i18n.language, { year: 'numeric', month: 'long', day: 'numeric' }) })} ) } else { return ( ) } } export default AccountInformationCreated