import * as React from 'react';

export interface DetailPropsType {
  data?: object;
  onBack?: () => void;
  loading?: boolean;
}
export interface DataType {
  annex?: any;
  content?: string;
  title?: string;
}

export interface ListPropsType {
  data?: ItemType[];
  onClick?: (id: number) => void;
  loading?: boolean;
  pagination?: object;
  [key: string]: any;
}
export interface ItemType {
  id: number;
  cover_image?: string;
  title?: string;
  describe?: string;
  created_at?: string;
  [key: string]: any;
}