export const FeedbackTypes = ['kritik', 'saran', 'aduan'] as const;

export type FeedbackTypeValue = (typeof FeedbackTypes)[number];

export const FeedbackTypeLabels: Record<FeedbackTypeValue, string> = {
    kritik: 'Kritik',
    saran: 'Saran',
    aduan: 'Aduan',
};

export const FeedbackStatuses = ['submitted', 'in_review', 'resolved'] as const;

export type FeedbackStatusValue = (typeof FeedbackStatuses)[number];

export const FeedbackStatusLabels: Record<FeedbackStatusValue, string> = {
    submitted: 'Terkirim',
    in_review: 'Ditinjau',
    resolved: 'Selesai',
};

export type Feedback = {
    id: number;
    type: FeedbackTypeValue;
    subject: string;
    message: string;
    status: FeedbackStatusValue;
    admin_notes: string | null;
    created_at: string;
    updated_at: string;
};
