import type { SafetyProtocolDraft } from '@/business/safety-protocols/types';

/** A protocol needs a title and at least one non-empty procedure step. */
export function isSafetyDraftValid(draft: SafetyProtocolDraft): boolean {
  return Boolean(draft.title.trim() && draft.steps.some((step) => step.trim()));
}
