返回 AiToEarn
types.ts
1 import type { SettingsTab } from '@/store/settingsModal'
2
3 /** 抽屉关闭回调 */
4 export interface MobileCloseProps {
5 onClose: () => void
6 }
7
8 /** 顶部栏 Props */
9 export interface MobileTopBarProps {
10 onOpen: () => void
11 }
12
13 /** 底部导航栏 Props */
14 export interface MobileBottomBarProps {
15 currentRoute: string
16 hidden?: boolean
17 }
18
19 /** 导航项 Props */
20 export interface MobileNavItemProps extends MobileCloseProps {
21 path: string
22 href?: string
23 translationKey: string
24 icon?: React.ReactNode
25 isActive: boolean
26 className?: string
27 }
28
29 /** 我的频道按钮 Props */
30 export interface MobileMyChannelsButtonProps extends MobileCloseProps {
31 onOpenMyChannels: () => void
32 }
33
34 /** 导航列表 Props */
35 export interface MobileNavListProps extends MobileCloseProps {
36 currentRoute: string
37 onOpenMyChannels: () => void
38 }
39
40 /** 用户信息区域 Props */
41 export interface MobileUserSectionProps extends MobileCloseProps {
42 onOpenSettings: (tab?: SettingsTab) => void
43 }
44
44 lines TYPESCRIPT