export interface CommentRecord {
  id: string;
  post_slug: string;
  user: string;
  content: string;
  parent?: string | null;
  is_verified: boolean;
  status: "pending" | "published" | "spam";
  created: string;
  updated: string;
  expand?: {
    user?: UserRecord;
  };
}

export interface UserRecord {
  id: string;
  name: string;
  email: string;
  avatar?: string;
}

export interface CommentWithReplies extends CommentRecord {
  replies?: CommentWithReplies[];
}

export interface CommentFormData {
  content: string;
  post_slug: string;
  parent?: string | null;
}

export interface CommentsApiResponse {
  page: number;
  perPage: number;
  totalItems: number;
  totalPages: number;
  items: CommentRecord[];
}
