export interface CreateNewsPayload {
  id?: string;
  newsCategoryId: string;
  title: {
    am: string;
    en: string;
  };
  subTitle: {
    am: string;
    en: string;
  };
  body: {
    am: string;
    en: string;
  };
  fileInfo?: {
    fileName: string;
    contentType: string;
    size: number;
    originalname: string;
  };
  isActive: boolean;
  isFeatured: boolean;
}

export interface NewsItem {
  amharicCreatedAt: any;
  createdAt: string;
  updatedAt: string;
  id: string;
  newsCategoryId: string;
  title?: {
    am: string;
    en: string;
  };
  subTitle?: {
    am: string;
    en: string;
  };
  body?: {
    am: string;
    en: string;
  };
  fileInfo?: {
    fileName: string;
    contentType: string;
    size: number;
    originalname: string;
  };
  isActive: boolean;
  isFeatured: boolean;
  presigned?: string;
  // Category information (populated from relation)
  newsCategory?: any;
}

export interface NewsResponse {
  count: number;
  items: NewsItem[];
}
