optimize antd/link imports ui/elements/text: use antd component ui/element: optimize input, input-number, switch, checkbox imports fix Number typename ui/elements: optimize Radio, Segmented, Select move type Status to store types fix TableInsurance builders packages/ui: remove antd dir Output/Results: fix elements margin revert Loading status to elements packages/ui: remove value from props remove unnecessary loading prop
10 lines
294 B
TypeScript
10 lines
294 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>{value || props.children}</Typography.Text>;
|
|
}
|