import clsx from 'clsx' import type { AnchorProps } from 'components/Anchor' import { Anchor } from 'components/Anchor' export type ButtonVariant = 'solid' | 'outline' export interface AnchorButtonProps extends AnchorProps { isDisabled?: boolean isWide?: boolean leftIcon?: JSX.Element rightIcon?: JSX.Element variant?: ButtonVariant } export const AnchorButton = (props: AnchorButtonProps) => { const { isWide, leftIcon, rightIcon, variant = 'solid', className, children, ...rest } = props return ( {leftIcon}
{children}
{rightIcon}
) } export default AnchorButton