#591 - sites [wip]

This commit is contained in:
Saeed Vaziry
2025-05-25 22:17:19 +02:00
parent ff11fb44e0
commit f5fdbae4ac
77 changed files with 2156 additions and 414 deletions

View File

@ -3,8 +3,13 @@ import { ProjectSwitch } from '@/components/project-switch';
import { SlashIcon } from 'lucide-react';
import { ServerSwitch } from '@/components/server-switch';
import AppCommand from '@/components/app-command';
import { SiteSwitch } from '@/components/site-switch';
import { usePage } from '@inertiajs/react';
import { SharedData } from '@/types';
export function AppHeader() {
const page = usePage<SharedData>();
return (
<header className="bg-background -ml-1 flex h-12 shrink-0 items-center justify-between gap-2 border-b p-4 md:-ml-2">
<div className="flex items-center">
@ -13,6 +18,12 @@ export function AppHeader() {
<ProjectSwitch />
<SlashIcon className="size-3" />
<ServerSwitch />
{page.props.server && (
<>
<SlashIcon className="size-3" />
<SiteSwitch />
</>
)}
</div>
</div>
<AppCommand />