10 lines
298 B
TypeScript
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>;
|
|
}
|