diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 2968111..e35d4cc 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -6,12 +6,17 @@ interface ButtonProps { className?: string; variant?: "default" | "blue" | "blue_alt"; shadowEnabled?: boolean; + disabled?: boolean; } export default function Button(props: ButtonProps) { - const { variant = "default", shadowEnabled = true } = props; + const { variant = "default", shadowEnabled = true, disabled = false } = props; const getButtonStyles = () => { + if (disabled) { + return "bg-gray-300 text-gray-500 cursor-not-allowed"; + } + switch (variant) { case "blue": return "bg-[#1068B0] text-white hover:bg-[#0e5a9c]"; @@ -25,7 +30,7 @@ export default function Button(props: ButtonProps) { return (