export type FormState = { ok: boolean; error?: string; fieldErrors?: Partial>; values?: Partial>; }; export type DeleteState = { ok: boolean; error?: string }; export function logActionError( action: string, context: Record, error: unknown, ): void { console.error(`[${action}] gagal`, context, error); }