import type { ElementType } from 'react'; import type React from 'react'; import { cn } from '../../utils/cn'; import type { AsProps } from '../props'; export type TruncateFormatProps = AsProps & { value?: string | null; children?: React.ReactNode; }; export const TruncateFormat = ({ as: As = 'div', className, children, value, ...props }: TruncateFormatProps) => { const content = children || value || ''; return ( {content} ); };