2023-05-16 12:03:54 +03:00

10 lines
306 B
TypeScript

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