import { ComponentChildren, JSX } from "preact"; type ButtonProps = { children: ComponentChildren; } & JSX.HTMLAttributes; const className = "p-2 border(gray-100 2) hover:bg-gray-200 bg-blue-200 w-max font-medium"; export function Button(props: ButtonProps) { const { children, className: additionalClass = "", ...buttonProps } = props; return ( ); } type AnchorProps = { children: ComponentChildren; } & JSX.HTMLAttributes; export function ButtonLink(props: AnchorProps) { const { children, className: additionalClass = "", ...linkProps } = props; return ( {children} ); }