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

25 lines
577 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
}
const AccountInformationNotes: React.FC<Props> = ({ account }) => {
return (
<View style={styles.note}>
2021-01-01 16:48:16 +01:00
<ParseHTML content={account.note!} size={'M'} emojis={account.emojis} />
2020-12-27 16:25:29 +01:00
</View>
)
}
const styles = StyleSheet.create({
note: {
marginBottom: StyleConstants.Spacing.L
}
})
export default AccountInformationNotes