import clsx from 'clsx'; import { type Button } from '../props'; interface SubmitButtonProps extends Button { /** Text to display in the button. */ text?: string; /** Icon to display in the button. */ icon?: React.ReactNode; /** Indicates that loading is in progress. */ loading?: boolean; } /** * Displays submit type button with icon and text. */ export function SubmitButton({ text = 'ОК', icon, disabled, loading, className, ...restProps }: SubmitButtonProps) { return ( ); }