import { children, JSX, Show, splitProps } from 'solid-js' import { Spinner } from './Spinner' type Props = { variant?: 'primary' | 'secondary' children: JSX.Element isDisabled?: boolean isLoading?: boolean } & JSX.ButtonHTMLAttributes export const Button = (props: Props) => { const childrenReturn = children(() => props.children) const [local, buttonProps] = splitProps(props, ['disabled', 'class']) return ( ) }