busybar-ui / src / components / demo / title.tsx
title.tsx
Raw
import * as React from 'react'

import { Text, View } from '@/ui'

type Props = {
  text: string
}
export const Title = ({ text }: Props) => {
  return (
    <View className="flex-row items-center justify-center  py-4 pb-2">
      <Text className="pr-2 text-2xl">{text}</Text>
      <View className="h-[2px] flex-1 bg-neutral-300" />
    </View>
  )
}