import type { IHomeCommonCategoryListTabNestCategoryItemDefine } from "./CommonCategoryDefine";
import type { IHomeCommonCategoryDynamicData, IHomeCommonCategoryDynamicDataDetailContent } from "./CommonCategoryDynamicData";

export interface CategoryDefine extends Omit<IHomeCommonCategoryListTabNestCategoryItemDefine, 'type'> {
  title: string;
  showTitle: boolean;
  content: IHomeCommonCategoryDynamicData|IHomeCommonCategoryDynamicDataDetailContent|null;
  type?: 'article'|'large-image2'|'horizontal-large'|'large-image'|'large-grid2'|'small-grid'|'small-grid2'|'simple-article'|'simple-text'
    |'default'
    |'CalendarBlock'|'StatsBlock'|'MapBlock'|'AudioBlock'|'RichBlock'
    |undefined;
}

export const CommonCategoryBlockType : {
  type: CategoryDefine['type'],
  label: string,
}[] = [
  { type: 'default', label: '默认' },
  { type: 'article', label: '文章' },
  { type: 'simple-article', label: '简单文章' },
  { type: 'simple-text', label: '简单文本' },
  { type: 'large-image', label: '大图' },
  { type: 'large-image2', label: '大图2列' },
  { type: 'large-grid2', label: '大图2列' },
  { type: 'small-grid2', label: '小图2列' },
  { type: 'small-grid', label: '小图' },
  { type: 'horizontal-large', label: '横排大图' },
  { type: 'CalendarBlock', label: '预制块：日历块' },
  { type: 'StatsBlock', label: '预制块：统计块' },
  { type: 'MapBlock', label: '预制块：地图块' },
  { type: 'AudioBlock', label: '预制块：音频块' },
  { type: 'RichBlock', label: '预制块：富文本块' },
];