()
| 25 | copyButtonPlacement = 'top', |
| 26 | }: CodeBlockProps) => { |
| 27 | const handleCopy = () => { |
| 28 | if (!dataToCopy) return; |
| 29 | navigator.clipboard.writeText(dataToCopy); |
| 30 | toast({ |
| 31 | title: 'Copied to clipboard', |
| 32 | description: `${title || 'Content'} has been copied.`, |
| 33 | }); |
| 34 | }; |
| 35 | |
| 36 | return ( |
| 37 | <Card |
nothing calls this directly
no test coverage detected
searching dependent graphs…