New component
This commit is contained in:
parent
326b7f97d3
commit
1a100a4222
1 changed files with 16 additions and 0 deletions
16
src/components/Clickable/Clickable.tsx
Normal file
16
src/components/Clickable/Clickable.tsx
Normal 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>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue