import type { ComponentPropsWithoutRef, ElementType } from "react"; import s from "./button.module.scss"; import clsx from "clsx"; export type ButtonProps = { variant?: "primary" | "secondary" | "outlined"; fullWidth?: boolean; as?: T; } & ComponentPropsWithoutRef; export function Button({ className, variant = "primary", fullWidth = false, as, ...rest }: ButtonProps) { const Component = as ?? "button"; return ( ); }