import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react' import s from './button.module.scss' export type ButtonProps = { as?: T children: ReactNode variant?: 'primary' | 'secondary' | 'tertiary' | 'link' fullWidth?: boolean className?: string } & ComponentPropsWithoutRef export const Button = (props: ButtonProps) => { const { variant = 'primary', fullWidth, className, as: Component = 'button', ...rest } = props return ( ) }