export type MainTabKey = 'plaza' | 'nearby' | 'messages' | 'profile' // Props the single-page host (pages/home) passes to each tab view: whether it is // the visible tab, and a counter that bumps when the host returns to foreground. export interface TabViewProps { active?: boolean showTick?: number } export interface TabConfig { key: MainTabKey label: string path: string dot?: boolean } export const tabs: TabConfig[] = [ { key: 'plaza', label: '广场', path: '/pages/plaza/index' }, { key: 'nearby', label: '附近', path: '/pages/nearby/index' }, { key: 'messages', label: '汪友', path: '/pages/messages/index', dot: true }, { key: 'profile', label: '我的', path: '/pages/profile/index' } ]