2026-01-17 11:02:33 +08:00
|
|
|
import { FileIcon } from "lucide-react";
|
2026-01-17 00:05:19 +08:00
|
|
|
|
2026-01-17 11:02:33 +08:00
|
|
|
import { cn } from "@/lib/utils";
|
2026-01-17 00:05:19 +08:00
|
|
|
|
2026-01-17 11:02:33 +08:00
|
|
|
export function ArtifactFileDetail({
|
|
|
|
|
className,
|
|
|
|
|
filepath,
|
|
|
|
|
}: {
|
|
|
|
|
className?: string;
|
|
|
|
|
filepath: string;
|
|
|
|
|
}) {
|
2026-01-17 00:02:03 +08:00
|
|
|
return (
|
2026-01-17 11:02:33 +08:00
|
|
|
<div
|
|
|
|
|
className={cn(
|
|
|
|
|
"relative flex size-full items-center justify-center",
|
|
|
|
|
className,
|
|
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
<div className="flex size-fit items-center gap-2">
|
2026-01-17 00:02:03 +08:00
|
|
|
<div>
|
|
|
|
|
<FileIcon />
|
|
|
|
|
</div>
|
|
|
|
|
<div>{filepath}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|