mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
22 lines
532 B
TypeScript
22 lines
532 B
TypeScript
|
|
import { Separator } from "@/components/ui/separator";
|
||
|
|
import { cn } from "@/lib/utils";
|
||
|
|
import clsx from "clsx";
|
||
|
|
|
||
|
|
interface HeaderProps {
|
||
|
|
children: React.ReactNode;
|
||
|
|
withTopMargin?: boolean;
|
||
|
|
className?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const Header = ({
|
||
|
|
children,
|
||
|
|
withTopMargin = true,
|
||
|
|
className,
|
||
|
|
}: HeaderProps) => {
|
||
|
|
return (
|
||
|
|
<div className={cn("mb-16", className)}>
|
||
|
|
{children}
|
||
|
|
<Separator className={clsx("absolute left-0 right-0", { "mt-12": withTopMargin })} />
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|