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

interface SharingOptionsProps {
  requirePassword: boolean;
  allowExternalSharing: boolean;
  onRequirePasswordChange: (enabled: boolean) => void;
  onAllowExternalSharingChange: (enabled: boolean) => void;
}

export function SharingOptions({
  requirePassword,
  allowExternalSharing,
  onRequirePasswordChange,
  onAllowExternalSharingChange
}: SharingOptionsProps) {
  return (
    <div className="space-y-3">
      <div className="flex items-center justify-between p-4 bg-muted/50 rounded-lg">
        <div>
          <p className="font-medium">Require Password for Shared Links</p>
          <p className="text-sm text-muted-foreground">Add password protection to workflow sharing links</p>
        </div>
        <Switch
          checked={requirePassword}
          onCheckedChange={onRequirePasswordChange}
        />
      </div>

      <div className="flex items-center justify-between p-4 bg-muted/50 rounded-lg">
        <div>
          <p className="font-medium">Allow External Sharing</p>
          <p className="text-sm text-muted-foreground">Enable sharing workflows with external users outside the organization</p>
        </div>
        <Switch
          checked={allowExternalSharing}
          onCheckedChange={onAllowExternalSharingChange}
        />
      </div>
    </div>
  );
}

