mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
24 lines
516 B
TypeScript
24 lines
516 B
TypeScript
import { Outlet } from 'react-router';
|
|
import styled from 'styled-components';
|
|
import { Titlebar } from '/@/renderer/features/titlebar/components/titlebar';
|
|
|
|
const TitlebarContainer = styled.header`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 5000;
|
|
height: 2.5rem;
|
|
background: var(--titlebar-controls-bg);
|
|
-webkit-app-region: drag;
|
|
`;
|
|
|
|
export const TitlebarOutlet = () => {
|
|
return (
|
|
<>
|
|
<TitlebarContainer>
|
|
<Titlebar />
|
|
</TitlebarContainer>
|
|
<Outlet />
|
|
</>
|
|
);
|
|
};
|