import { ModalStatus } from "@/types"; import React from "react"; interface ButtonProps { status: ModalStatus; text: string; } export const Button = ({ status, text }: ButtonProps) => { const className = (() => { switch (status) { case ModalStatus.Loading: return "btn text-primary-base-content bg-base-100 hover:bg-base-100 shadow disabled:bg-base-content disabled:shadow-none"; case ModalStatus.Success: return "btn text-primary-base-content bg-base-100 hover:bg-base-100 shadow disabled:bg-base-content disabled:shadow-none"; case ModalStatus.Default: return "btn text-primary-base-content bg-base-100 hover:bg-base-100 shadow"; default: return "btn text-primary-base-content bg-base-100 hover:bg-base-100 shadow"; } })(); return ( ); }; export default Button;