'use client'; import './payButton.scss'; import { cn } from '@/lib/utils/client'; export type PayButtonState = 'idle'|'loading'|'success'; type Props = { state: PayButtonState; label: string; icon?: React.ReactNode; onClick?: () => void; disabled?: boolean; className?: string; type?: 'button'|'submit'; }; export default function PayButton({ state, label, icon, onClick, disabled, className, type = 'button' }: Props) { const isBusy = state === 'loading' || state === 'success'; return ( ); }