forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseparator.tsx
More file actions
27 lines (23 loc) · 696 Bytes
/
Copy pathseparator.tsx
File metadata and controls
27 lines (23 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;