import { Typography } from 'antd';
import type { ComponentProps, ReactNode } from 'react';

export function Text({
  value = '',
  ...props
}: ComponentProps<(typeof Typography)['Text']> & { value?: ReactNode }) {
  return <Typography.Text {...props}>{value || props.children}</Typography.Text>;
}
