2023-05-16 13:50:47 +03:00

10 lines
298 B
TypeScript

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>;
}