import { Match, Switch } from 'solid-js' import { Header, HeaderLogo, MainPanel } from '@tanstack/devtools-ui' import { useTableDevtoolsContext } from '../TableContextProvider' import { useStyles } from '../styles/use-styles' import { ColumnsPanel } from './ColumnsPanel' import { FeaturesPanel } from './FeaturesPanel' import { RowsPanel } from './RowsPanel' import { StatePanel } from './StatePanel' import { OptionsPanel } from './OptionsPanel' const tabs = [ { id: 'features', label: 'Features' }, { id: 'state', label: 'State' }, { id: 'options', label: 'Options' }, { id: 'rows', label: 'Rows' }, { id: 'columns', label: 'Columns' }, ] as const export function Shell() { const styles = useStyles() const { activeTab, setActiveTab } = useTableDevtoolsContext() return (
{ window.open('https://tanstack.com/table', '_blank') }} > TanStack Table
{tabs.map((tab) => ( ))}
) }