import clsx from 'clsx'; import { PropsWithChildren, useRef } from 'react'; import { Tooltip } from '@sd/ui'; import { useIsTextTruncated } from '~/hooks'; export const TruncatedText = ({ children, className }: PropsWithChildren<{ className?: string }>) => { const ref = useRef(null); const isTruncated = useIsTextTruncated(ref); return (
{children}
); };