mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
Some checks failed
Build & Push Monaco Docker Image / build-and-push-monaco-docker-image (., Dockerfile, monaco-editor-lsp-next) (push) Failing after 1s
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { cn } from "@/lib/utils";
|
|
import RunCode from "@/components/run-code";
|
|
import BackButton from "@/components/back-button";
|
|
import { AvatarButton } from "@/components/avatar-button";
|
|
|
|
interface PlaygroundHeaderProps {
|
|
className?: string;
|
|
}
|
|
|
|
export function PlaygroundHeader({
|
|
className,
|
|
...props
|
|
}: PlaygroundHeaderProps) {
|
|
return (
|
|
<header
|
|
{...props}
|
|
className={cn("relative", className)}
|
|
>
|
|
<nav className="relative h-12 w-full flex shrink-0 items-center px-2.5">
|
|
<div className="w-full flex justify-between">
|
|
<div className="w-full flex items-center justify-between">
|
|
<div className="z-10 flex items-center">
|
|
<BackButton href="/problemset" />
|
|
</div>
|
|
<div className="z-10 flex items-center gap-2">
|
|
<AvatarButton />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div className="absolute left-0 right-0 top-0 h-full mx-auto py-2">
|
|
<div className="relative flex justify-center">
|
|
<div className="relative flex overflow-hidden rounded">
|
|
<RunCode className="bg-muted text-muted-foreground hover:bg-muted/50" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|