import { Switch } from '@/components/ui/switch';

type ActiveStatusSwitchProps = {
    isActive: boolean;
    onChange: (isActive: boolean) => void;
};

export function ActiveStatusSwitch({
    isActive,
    onChange,
}: ActiveStatusSwitchProps) {
    return (
        <div className="flex items-center gap-2">
            <Switch checked={isActive} onCheckedChange={onChange} />
            <span className="text-sm text-muted-foreground">
                {isActive ? 'Aktif' : 'Nonaktif'}
            </span>
        </div>
    );
}
