({ code }: { code: string })
| 11 | const CODE_EXAMPLE_HEIGHT = 162; |
| 12 | |
| 13 | async function copyCode({ code }: { code: string }) { |
| 14 | try { |
| 15 | await clipboardCopy(code); |
| 16 | } catch (error: any) { |
| 17 | // eslint-disable-next-line no-console |
| 18 | console.error(error); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | type Props = { |
| 23 | code: string; |
no test coverage detected