feat(header): add Header component with RunCode integration

This commit is contained in:
cfngc4594 2025-02-26 21:54:49 +08:00
parent a0b1327db7
commit 89dfc9a1c8

20
src/components/header.tsx Normal file
View File

@ -0,0 +1,20 @@
import { cn } from "@/lib/utils";
import RunCode from "./run-code";
interface HeaderProps {
className?: string;
}
export function Header({
className,
...props
}: HeaderProps) {
return (
<header
{...props}
className={cn("h-12 flex flex-none items-center justify-center", className)}
>
<RunCode />
</header>
);
}