import { Variable, bind } from "astal" type Props = { p: string child?: JSX.Element children?: Array } export default function MyButton({p, child, children}: Props) { const count = Variable(0) const labels = [p +"1", p +"2"] if (child) { console.log(child.label) } function increment() { count.set(count.get() + 1) } function handleClick(self, ...args) { console.log(self, "was clicked") } return {labels.map(label => ( ))} }