import { h, JSX } from 'preact'; import { forwardRef } from 'preact/compat'; import b, { Mods, Mix } from 'bem-react-helper'; import type { Theme } from 'common/types'; export type ButtonProps = Omit & { kind?: 'primary' | 'secondary' | 'link'; size?: 'middle' | 'large'; theme?: Theme; mods?: Mods; mix?: Mix; type?: string; }; export const Button = forwardRef( ({ children, theme, mods, mix, kind, type = 'button', size, ...props }, ref) => ( ) );