8 lines
361 B
TypeScript
8 lines
361 B
TypeScript
/* The active voyage tab (Carte / Calendrier / Photos). Shared so the tabs can
|
|
* live in the top brand bar (layout) while the voyage page reads/writes them
|
|
* and the time/place pills route by switching it. */
|
|
|
|
export type VoyageTab = "carte" | "calendrier" | "photos"
|
|
|
|
export const useActiveTab = () =>
|
|
useState<VoyageTab>("voyageActiveTab", () => "carte")
|