forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.ts
More file actions
18 lines (15 loc) · 637 Bytes
/
Copy pathtabs.ts
File metadata and controls
18 lines (15 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// The tab set, kept separate from TabBar.tsx so that file exports only a
// component (React Fast Refresh stops working for a module that mixes the two).
export interface Tab {
id: 'trail' | 'downloads' | 'more'
label: string
}
// Three tabs and no more: v1's whole surface fits in them, and the bar lives in
// the thumb zone where every extra target costs accuracy for someone walking.
// This is data so a future tab is one entry, not an edit to markup.
export const TABS: Tab[] = [
{ id: 'trail', label: 'Trail' },
{ id: 'downloads', label: 'Downloads' },
{ id: 'more', label: 'More' },
]
export type TabId = Tab['id']