import { useState } from "react" import { Check, Link2 } from "lucide-react" import { shortId } from "../../lib/routes" /** * Shows a short id and copies the full permalink (origin + `path`) on click, * so any issue, pattern, session or error can be referenced in a message. * The full id is in the tooltip and in the copied URL. */ export const CopyRef = ({ id, path, label = "Copy link" }: { id: string; path: string; label?: string }) => { const [copied, setCopied] = useState(false) return ( ) }