New component

This commit is contained in:
Patrick Alvin Alcala 2025-10-07 16:26:43 +08:00
parent 326b7f97d3
commit 1a100a4222

View file

@ -0,0 +1,16 @@
import type { JSXElement } from 'solid-js'
interface Props {
children: JSXElement
onClick: () => void
}
export default (props: Props) => {
return (
<>
<div style="cursor: pointer" onClick={props.onClick}>
{props.children}
</div>
</>
)
}