export const CodePreview = ({ filename, language, code, totalLines, githubUrl }) => { const [copied, setCopied] = React.useState(false); const handleCopy = () => { navigator.clipboard.writeText(code); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
{filename}
          
{code}
          
        
{ e.currentTarget.style.backgroundColor = '#161b22'; e.currentTarget.style.textDecoration = 'none'; }} onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = '#1a1a1a'; e.currentTarget.style.textDecoration = 'none'; }} > ... See all {totalLines} lines
); };