import { useState } from "react"; import { Album } from "./views/album.tsx"; import { Analytics } from "./views/analytics.tsx"; import { Health } from "./views/health.tsx"; import { Settings } from "./views/settings.tsx"; import { Suggestions } from "./views/suggestions.tsx"; const VIEWS = { Analytics: Analytics, Health: Health, Ideas: Suggestions, Photos: Album, Settings: Settings, } as const; type ViewName = keyof typeof VIEWS; const NAMES = Object.keys(VIEWS) as ViewName[]; export function App(): React.JSX.Element { const [view, setView] = useState("Health"); const Current = VIEWS[view]; return (

signal-bot

); }