File size: 763 Bytes
7dfae77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
interface SeparateButtonProps {
  onClick: () => void;
  disabled: boolean;
  stemCount: number;
}

export function SeparateButton({
  onClick,
  disabled,
  stemCount,
}: SeparateButtonProps) {
  return (
    <button
      onClick={onClick}
      disabled={disabled}
      className={`
        w-full py-3 px-6 rounded-xl font-semibold text-base transition-all
        ${
          disabled
            ? "bg-bg-hover text-text-secondary cursor-not-allowed"
            : "bg-accent hover:bg-accent-hover text-white shadow-lg shadow-accent/25 hover:shadow-accent/40 active:scale-[0.98]"
        }
      `}
    >
      {stemCount === 0
        ? "Select stems to separate"
        : `Separate ${stemCount} stem${stemCount !== 1 ? "s" : ""}`}
    </button>
  );
}