export interface BlogCardType {
  id: number;
  title: string;
  tag: string;
  description: string;
  image: string;
  slug: string;
  slug_ar?: string;
  slug_en?: string;
}

export interface ApiResponse<T> {
  success: boolean;
  data: T;
  message: string;
}

export interface Blog {
  id: number;
  image: string;
  title: string;
  meta: {
    id: number;
    title: string | null;
    meta_tag_description: string;
    meta_tag_keyword: string;
  };
  slug: string;
  slug_ar: string;
  slug_en: string;
  tag: string;
  description: string;
  created_at: string;
}

export interface PaginationLink {
  url: string | null;
  label: string;
  active: boolean;
}

export interface BlogsResponse {
  data: Blog[];
  links: {
    first: string;
    last: string;
    prev: string | null;
    next: string | null;
  };
  meta: {
    current_page: number;
    from: number;
    last_page: number;
    links: PaginationLink[];
    path: string;
    per_page: number;
    to: number;
    total: number;
  };
}
