mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-15 11:12:16 -05:00
17 lines
626 B
React
17 lines
626 B
React
// Driver Settings Tab
|
|
// Purpose: Owns the shared driver settings panel placement.
|
|
import { TabPanel } from '../../../../../components/Tabs/index.jsx';
|
|
import SettingsPanel from '../../../../../components/SettingsPanel/index.jsx';
|
|
import { themeStackClass } from '../../../../../themes/index.js';
|
|
import { useLayout } from '../../../../LayoutContext.jsx';
|
|
|
|
export default function SettingsTab() {
|
|
const layout = useLayout();
|
|
const wrapped = layout !== 'desktop';
|
|
return (
|
|
<TabPanel id="settings">
|
|
{wrapped ? <div className={themeStackClass}><SettingsPanel /></div> : <SettingsPanel />}
|
|
</TabPanel>
|
|
);
|
|
}
|