import { useState } from 'react'; import { Layout } from './components/layout/Layout'; import { PlaceholderView } from './components/PlaceholderView'; import { LabelsView } from './components/labels/LabelsView'; import { TrainingView } from './components/training/TrainingView'; import { AlertsView } from './components/alerts/AlertsView'; import { ProductsView } from './components/products/ProductsView'; import { PeopleView } from './components/people/PeopleView'; import { ReportsView } from './components/reports/ReportsView'; import { LocationsView } from './components/locations/LocationsView'; import { DevicesView } from './components/devices/DevicesView'; import { InvoicesView } from './components/invoices/InvoicesView'; import { QRCodesView } from './components/qrcodes/QRCodesView'; import { Dashboard } from './components/dashboard/Dashboard'; const blankViews = ['Tasks', 'Sensors', 'Food Waste', 'E-Label', 'API']; export default function App() { const [currentView, setCurrentView] = useState('Dashboard'); const renderView = () => { if (blankViews.includes(currentView)) { return
; } switch (currentView) { case 'Dashboard': return