// 合同模板相关类型定义

export interface Template {
  id: string;
  title: string;
  type: string;
  description: string;
  updateTime: string;
  useCount: number;
  rating: number;
  category: string;
}

export interface TemplateDetail extends Template {
  fileSize: string;
  scope: string;
  legalBasis: string;
  templateCode: string;
  reviews: Review[];
  features: Feature[];
  structure: StructureItem[];
  preview: string;
}

export interface Review {
  user: string;
  rating: number;
  comment: string;
  date: string;
}

export interface Feature {
  title: string;
  description: string;
  icon: string;
  color: string;
}

export interface StructureItem {
  step: number;
  title: string;
  description: string;
}

export interface FilterItem {
  label: string;
  count: number;
}

export interface CategoryItem {
  name: string;
  icon: string;
  count: number;
}

export type ViewMode = 'grid' | 'list';
export type SortBy = 'relevance' | 'newest' | 'popular' | 'rating'; 