import { Timestamp } from 'firebase-admin/firestore';

export type ReportReasonType =
  | 'incorrect_info'
  | 'outdated_info'
  | 'misleading_content'
  | 'missing_source';

export const VALID_REPORT_REASONS: ReportReasonType[] = [
  'incorrect_info',
  'outdated_info',
  'misleading_content',
  'missing_source',
];

export interface ErrorReport {
  id: string;
  docId: string;
  reporterId: string;
  reporterName: string;
  reasonType: ReportReasonType;
  memo?: string;
  createdAt: Timestamp;
}
