import { icon } from "@mariozechner/mini-lit"; import { html } from "lit"; import { FileCode2 } from "lucide"; export function ArtifactPill(filename, artifactsPanel) { const handleClick = (e) => { if (!artifactsPanel) return; e.preventDefault(); e.stopPropagation(); // openArtifact will show the artifact and call onOpen() to open the panel if needed artifactsPanel.openArtifact(filename); }; return html ` ${icon(FileCode2, "sm")} ${filename} `; } //# sourceMappingURL=ArtifactPill.js.map