import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import './index.scss'

interface ItemExtraProps {
  text: string | undefined
  style?: any
}

const ItemExtra: React.FC<ItemExtraProps> = ({ text, style }) => {
  if (!text) {
    return null
  }

  return (
    <View className='item-extra' style={style}>
      <Text>{text}</Text>
    </View>
  )
}

export default ItemExtra
