/**
 * TypeScript interfaces for the blog system
 * Supports multilingual content (Arabic/English) with MDX
 */

export interface BlogPost {
  slug: string;
  title: string;
  date: string;
  excerpt: string;
  coverImage?: string;
  tags: string[];
  author: string;
  published: boolean;
  featured?: boolean;
  content: string;
  readingTime?: string;
  lang: "ar" | "en";
}

export interface BlogMetadata {
  slug: string;
  title: string;
  date: string;
  excerpt: string;
  coverImage?: string;
  tags: string[];
  author: string;
  published: boolean;
  featured?: boolean;
  readingTime?: string;
  lang: "ar" | "en";
}

export interface PaginationProps {
  currentPage: number;
  totalPages: number;
  lang: "ar" | "en";
}

export interface PostCardProps {
  post: BlogMetadata;
  lang: "ar" | "en";
  index?: number;
}

export interface PostListProps {
  posts: BlogMetadata[];
  lang: "ar" | "en";
  currentPage: number;
  totalPages: number;
}
