bolt.new/packages/bolt/app/components/header/Header.tsx
2024-07-29 20:31:45 +02:00

20 lines
669 B
TypeScript

import { ClientOnly } from 'remix-utils/client-only';
import { OpenStackBlitz } from './OpenStackBlitz.client';
import { IconButton } from '~/components/ui/IconButton';
export function Header() {
return (
<header className="flex items-center bg-white p-4 border-b border-gray-200 h-[var(--header-height)]">
<div className="flex items-center gap-2">
<div className="text-2xl font-semibold text-accent">Bolt</div>
</div>
<div className="ml-auto flex gap-2">
<ClientOnly>{() => <OpenStackBlitz />}</ClientOnly>
<a href="/logout">
<IconButton icon="i-ph:sign-out" />
</a>
</div>
</header>
);
}