import React, { useState } from 'react'; import { Box, Tabs, Tab } from '@mui/material'; import { ClientsOverview } from '../clients/ClientsOverview'; import { UserManagement } from './UserManagement'; import { LoginHistory } from './LoginHistory'; import { Allocation } from './Allocation'; import { AuditHistory } from './AuditHistory'; import { DevTickets } from './DevTickets'; import { MissingMedia } from './MissingMedia'; export const AdminConsole: React.FC = () => { const [tab, setTab] = useState(0); return ( // MainLayout's
is height:100vh + overflow:hidden (by design, so other // pages can own their own internal scroll regions - see AnomalyTable.tsx/ // GlobalFeed.tsx for the same pattern). This tab's content (filters + large // tables) can exceed the viewport, so it needs its own bounded, scrollable // container rather than relying on the page ever growing taller than 100vh. setTab(value)} sx={{ mb: 3 }}> {tab === 0 && } {tab === 1 && } {tab === 2 && } {tab === 3 && } {tab === 4 && } {tab === 5 && } {tab === 6 && } ); };