import { Copy, Check } from 'lucide-react'; import { useState } from 'react'; interface GostCitationProps { citation: string; number?: number; } export function GostCitation({ citation, number }: GostCitationProps) { const [copied, setCopied] = useState(false); const handleCopy = () => { navigator.clipboard.writeText(citation).then(() => { setCopied(true); setTimeout(() => setCopied(false), 2000); }); }; return (
{number !== undefined && ( {number}. )}

{citation}

); }