({
children,
onClick,
}: {
children: ComponentChildren
onClick: () => void
})
| 1 | import type { ComponentChildren } from 'preact' |
| 2 | |
| 3 | export default function Button({ |
| 4 | children, |
| 5 | onClick, |
| 6 | }: { |
| 7 | children: ComponentChildren |
| 8 | onClick: () => void |
| 9 | }) { |
| 10 | return <button onClick={onClick}>{children}</button> |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected