export interface BlogCategory {
  _id: string;
  title_fa: string;
  title_en: string;
  slug: string;
  icon: string;
  imageUrl: string;
  description: string;
  variants: number[];
  hierarchy: string[];
  leaf: boolean;
  parent: string | null;
  deleted: boolean;
  createdAt: string;
  updatedAt: string;
  url: string;
  children: BlogCategory[];
  theme?: string;
}

export interface BlogAuthor {
  fullName: string;
}

export interface Blog {
  _id: string;
  title_fa: string;
  slug: string;
  category: BlogCategory;
  description: string;
  content: string;
  author: BlogAuthor;
  view: number;
  tags: string[];
  imageUrl: string;
  createdAt: string;
}

export interface BlogPager {
  page: number;
  limit: number;
  totalItems: number;
  totalPages: number;
  prevPage: boolean;
  nextPage: boolean;
}

export interface BlogResults {
  pager: BlogPager;
  blogs: Blog[];
}

export interface BlogCategoryResponse {
  status: number;
  success: boolean;
  results: {
    data: BlogCategory[];
  };
}

export interface BlogResponse {
  status: number;
  success: boolean;
  results: BlogResults;
}

export interface BlogDetailResponse {
  status: number;
  success: boolean;
  results: {
    blog: Blog;
  };
}
