"use client"; import type { NotificationFlags } from "@/lib/api"; /** * The "Flags del envío" panel. It lives in the /notificaciones shell above the * tabs, not inside one of them, because the flags are platform-wide: `debug` * governs the pólizas avisos exactly as it governs the four servicios jobs, * and a switch that only protected half the screen was the bug this fixes. * * State is per-visit, never persisted — see the note on the schedule card. A * stored `debug` would survive a reload and silently swallow real customer * mail; the automatic corridas therefore always send for real. */ export function NotificationFlagsCard({ flags, onChange, disabled = false, }: { flags: NotificationFlags; onChange: (next: NotificationFlags) => void; disabled?: boolean; }) { const set = (patch: Partial) => onChange({ ...flags, ...patch }); return (

Flags del envío

Se aplican a todo lo que se envía desde esta pantalla — servicios y pólizas — y solo a los envíos manuales. Las corridas automáticas siempre mandan de verdad.

); }