import { useMocks } from "../index";

export interface NewsItem {
  id: string;
  title: string;
  description: string;
  time: string;
  thumbnail: string;
}

export const mockNews: NewsItem[] = [
  {
    id: "1",
    title: "比特币突破45000美元大关，创下近期新高",
    description: "在市场乐观情绪推动下，比特币价格今日突破45000美元，较上周上涨8.5%，投资者信心持续回升。",
    time: "2024-12-28 10:30:00",
    thumbnail: "https://images.unsplash.com/photo-1518546305927-5a555bb7020d?w=400",
  },
  {
    id: "2",
    title: "美联储维持利率不变，加密货币市场迎来利好",
    description: "美联储宣布维持基准利率在5.25%-5.5%区间，市场普遍认为这将有利于加密货币市场的稳定发展。",
    time: "2024-12-28 09:15:00",
    thumbnail: "https://images.unsplash.com/photo-1621761191319-c6fb62004040?w=400",
  },
  {
    id: "3",
    title: "以太坊2.0质押量突破3200万ETH",
    description: "以太坊网络质押总量持续增长，目前已超过3200万枚ETH，占总供应量的26.7%，显示出投资者对网络的长期信心。",
    time: "2024-12-28 08:45:00",
    thumbnail: "https://images.unsplash.com/photo-1639762681485-074b7f938ba0?w=400",
  },
  {
    id: "4",
    title: "香港推出加密货币交易所监管新规",
    description: "香港证监会发布最新监管指引，要求所有在港运营的加密货币交易平台必须在规定期限内申请牌照。",
    time: "2024-12-27 18:20:00",
    thumbnail: "https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=400",
  },
];

// 注册mock数据
useMocks().register("news", () => mockNews);
