import { PropsWithChildren } from 'react'; import { type Props as ButtonProps, Button } from './Button'; interface Props extends ButtonProps { loadingText: string; isLoading: boolean; } export function LoadingButton({ loadingText, isLoading, disabled, type = 'submit', children, ...buttonProps }: PropsWithChildren) { return (