mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
c1330d92b2
* mantine v8 migration * various design changes and improvements
23 lines
629 B
TypeScript
23 lines
629 B
TypeScript
import { Outlet } from 'react-router';
|
|
|
|
import styles from './titlebar-outlet.module.css';
|
|
|
|
import { Titlebar } from '/@/renderer/features/titlebar/components/titlebar';
|
|
import { useWindowSettings } from '/@/renderer/store/settings.store';
|
|
import { Platform } from '/@/shared/types/types';
|
|
|
|
export const TitlebarOutlet = () => {
|
|
const { windowBarStyle } = useWindowSettings();
|
|
|
|
return (
|
|
<>
|
|
{windowBarStyle === Platform.WEB && (
|
|
<header className={styles.container}>
|
|
<Titlebar />
|
|
</header>
|
|
)}
|
|
<Outlet />
|
|
</>
|
|
);
|
|
};
|