Files
pterodactyl-panel/resources/scripts/components/elements/SubNavigationLayout.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

21 lines
617 B
TypeScript

import React from 'react';
interface Props {
navigation: React.ReactNode;
children?: React.ReactNode;
}
/** Stacked by default; a sidebar row when `<html data-sub-navigation="side">` is set. */
const SubNavigationLayout = ({ navigation, children }: Props) => (
<div
className={
'side-navigation:mx-auto side-navigation:flex side-navigation:w-full side-navigation:max-w-panel side-navigation:items-start'
}
>
{navigation}
<div className={'side-navigation:min-w-0 side-navigation:flex-1'}>{children}</div>
</div>
);
export default SubNavigationLayout;