use route group

This commit is contained in:
Ren Amamiya
2023-04-17 16:36:27 +07:00
parent 59667f2977
commit 2b0a4e2402
21 changed files with 12 additions and 127 deletions
+2 -4
View File
@@ -8,15 +8,13 @@ const EventCollector = dynamic(() => import('@components/eventCollector'), {
ssr: false,
});
export default function AppHeader() {
export default function AppHeader({ collector }: { collector: boolean }) {
return (
<div data-tauri-drag-region className="flex h-full w-full flex-1 items-center px-2">
<AppActions />
<div data-tauri-drag-region className="flex h-full w-full items-center justify-between">
<div className="flex h-full items-center divide-x divide-zinc-900 px-4 pt-px"></div>
<div>
<EventCollector />
</div>
<div>{collector && <EventCollector />}</div>
</div>
</div>
);