export const FEEDBACK_CATEGORIES = [
  "problem",
  "suggestion",
  "payment",
  "other",
] as const;

export type FeedbackCategory = (typeof FEEDBACK_CATEGORIES)[number];

export interface FeedbackContext {
  appVersion: string;
  platform: string;
  browser: string;
  viewport: string;
  sourcePage?: string;
  paymentIssueReason?: string;
  subscriptionType?: string;
  planId?: string;
  orderId?: string;
  payChannel?: string;
  countryCode?: string;
  characterId?: string;
}

export interface SubmitFeedbackInput {
  category: FeedbackCategory;
  content: string;
  context: FeedbackContext;
  images: readonly File[];
  idempotencyKey?: string;
}
