import clsx from "clsx"; import type { ReactNode } from "react"; import "./DialogActionButton.scss"; import Spinner from "./Spinner"; interface DialogActionButtonProps { label: string; children?: ReactNode; actionType?: "primary" | "danger"; isLoading?: boolean; } const DialogActionButton = ({ label, onClick, className, children, actionType, type = "button", isLoading, ...rest }: DialogActionButtonProps & React.ButtonHTMLAttributes) => { const cs = actionType ? `Dialog__action-button--${actionType}` : ""; return ( ); }; export default DialogActionButton;