import { cn } from "@/lib/utils" function MiddleTruncatedText({ children, className, }: { children: string className?: string }) { const LAST_PART_LENGTH = 3 const lastPart = children.slice(children.length - LAST_PART_LENGTH) const firstPart = children.slice(0, children.length - LAST_PART_LENGTH) return (
{firstPart} {lastPart}
) } export { MiddleTruncatedText }