mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
28 lines
696 B
TypeScript
28 lines
696 B
TypeScript
import { cn } from "@/lib/utils";
|
|
import { DocsLayoutProps } from "fumadocs-ui/layouts/docs";
|
|
|
|
type Node = DocsLayoutProps["tree"]["children"][number];
|
|
|
|
interface SeparatorProps {
|
|
node: Node;
|
|
minimal?: boolean;
|
|
}
|
|
|
|
const Separator = ({ node, minimal = false }: SeparatorProps) => {
|
|
return (
|
|
<li className="flex gap-2 justify-between items-center mt-6 mb-3 w-full h-4 shrink-0">
|
|
<span
|
|
className={cn(
|
|
"uppercase text-[10px] w-max shrink-0 text-sidebar-separator",
|
|
minimal && "font-bold",
|
|
)}
|
|
>
|
|
{node.name}
|
|
</span>
|
|
{!minimal && <div className="w-full h-px bg-foreground/10" />}
|
|
</li>
|
|
);
|
|
};
|
|
|
|
export default Separator;
|