import type { FC, ReactNode } from 'react' interface Props { text: string | number | ReactNode, children?: ReactNode, dir?: string, className?: string, } const Td: FC = (props: Props) => { return ( { props.text ? props.text : props.children } ) } export default Td