(props: React.ComponentPropsWithoutRef<'svg'>)
| 46 | } |
| 47 | |
| 48 | function ClipboardIcon(props: React.ComponentPropsWithoutRef<'svg'>) { |
| 49 | return ( |
| 50 | <svg viewBox="0 0 20 20" aria-hidden="true" {...props}> |
| 51 | <path |
| 52 | strokeWidth="0" |
| 53 | d="M5.5 13.5v-5a2 2 0 0 1 2-2l.447-.894A2 2 0 0 1 9.737 4.5h.527a2 2 0 0 1 1.789 1.106l.447.894a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2Z" |
| 54 | /> |
| 55 | <path |
| 56 | fill="none" |
| 57 | strokeLinejoin="round" |
| 58 | d="M12.5 6.5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2m5 0-.447-.894a2 2 0 0 0-1.79-1.106h-.527a2 2 0 0 0-1.789 1.106L7.5 6.5m5 0-1 1h-3l-1-1" |
| 59 | /> |
| 60 | </svg> |
| 61 | ); |
| 62 | } |
| 63 | |
| 64 | function CopyButton({ code }: { code: string }) { |
| 65 | let [copyCount, setCopyCount] = useState(0); |
nothing calls this directly
no outgoing calls
no test coverage detected