/**
 * Standard return type for Server Actions.
 *
 * - `success` indicates whether the action completed without errors.
 * - `message` is an optional human-readable summary (success or failure).
 * - `errors` holds field-level validation errors keyed by field name.
 * - `data` carries the action's payload on success.
 */
export type ActionState<T = void> = {
  success: boolean
  message?: string
  errors?: Record<string, string[]>
  data?: T
}
