mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-12 07:12:58 +02:00
26 lines
687 B
TypeScript
26 lines
687 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
import styles from './titlebar.module.css';
|
|
|
|
import { WindowControls } from '/@/renderer/features/window-controls/components/window-controls';
|
|
import { Group } from '/@/shared/components/group/group';
|
|
|
|
interface TitlebarProps {
|
|
children?: ReactNode;
|
|
}
|
|
|
|
export const Titlebar = ({ children }: TitlebarProps) => {
|
|
return (
|
|
<>
|
|
<div className={styles.titlebarContainer}>
|
|
<div className={styles.right}>
|
|
{children}
|
|
<Group gap="xs">
|
|
<WindowControls />
|
|
</Group>
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|