refactor: convert Information Box to tsx

This commit is contained in:
RadoslavDimchev 2023-08-08 10:55:30 +03:00
parent f00d26e955
commit 96aca7a9eb
1 changed files with 9 additions and 3 deletions

View File

@ -1,8 +1,14 @@
import { XStack } from 'tamagui'
import { Icon } from './Icon'
import { FormattedText } from './FormattedText'
const InformationBox = ({ icon, textElements }) => {
import Icon from './Icon'
import FormattedText, { TextElement } from './FormattedText'
type InformationBoxProps = {
icon: string
textElements: TextElement[]
}
const InformationBox = ({ icon, textElements }: InformationBoxProps) => {
return (
<XStack
style={{