mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
#591 - sites [wip]
This commit is contained in:
@ -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 />
|
||||
|
Reference in New Issue
Block a user