tooot/src/screens/Tabs/Shared/Account/Information/Notes.tsx

28 lines
609 B
TypeScript
Raw Normal View History

2021-01-01 16:48:16 +01:00
import { ParseHTML } from '@components/Parse'
import { StyleConstants } from '@utils/styles/constants'
2020-12-27 16:25:29 +01:00
import React from 'react'
import { StyleSheet, View } from 'react-native'
export interface Props {
account: Mastodon.Account
}
2021-01-15 01:15:27 +01:00
const AccountInformationNotes = React.memo(
({ account }: Props) => {
return (
<View style={styles.note}>
<ParseHTML content={account.note!} size={'M'} emojis={account.emojis} />
</View>
)
},
() => true
)
2020-12-27 16:25:29 +01:00
const styles = StyleSheet.create({
note: {
marginBottom: StyleConstants.Spacing.L
}
})
export default AccountInformationNotes