'use client'; // 图标库 — SVG 内容逐字符提取自旧版 index.html (Feather Icons),与原版一致 const S = { xmlns: 'http://www.w3.org/2000/svg', width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2, strokeLinecap: 'round', strokeLinejoin: 'round', style: { display: 'inline', verticalAlign: 'middle' }, }; export function Icon({ name, size = 16, ...rest }) { return {PATHS[name] || null}; } const PATHS = { message: ( <> ), settings: ( <> ), shieldAlert: ( <> ), user: ( <> ), lock: ( <> ), moon: ( <> ), sun: ( <> ), logout: ( <> ), book: ( <> ), link: ( <> ), plus: ( <> ), shield: ( <> ), users: ( <> ), file: ( <> ), plus2: ( <> ), back: ( <> ), close: ( <> ), trash: ( <> ), success: ( <> ), error: ( <> ), warning: ( <> ), pending: ( <> ), edit: ( <> ), pin: ( <> ), camera: ( <> ), image: ( <> ), key: ( <> ), calendar: ( <> ), refresh: ( <> ), list: ( <> ), megaphone: ( <> ), code: ( <> ), upload: ( <> ), save: ( <> ), flag: ( <> ), };