Open History to see the last commit
1import { cn } from "~/lib/utils";
2import { SharedTooltipTrigger } from "~/components/ui/shared-tooltip";
3
4export function StartTruncatedPath({ path, className }: { path: string; className?: string }) {
5 return (
6 <SharedTooltipTrigger
7 render={
8 <span
9 className={cn(
10 "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-left",
11 className,
12 )}
13 dir="rtl"
14 />
15 }
16 label={path}
17 variant="code"
18 >
19 <bdi>{path}</bdi>
20 </SharedTooltipTrigger>
21 );
22}