gui: work in progress

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-17 21:47:37 +02:00
parent b9fe6127ff
commit 206ae54dea
53 changed files with 2632 additions and 88 deletions

View File

@@ -0,0 +1,21 @@
import { cn } from "@/utils/cn";
import { ChevronRight } from "lucide-react";
interface RenderDotsProps extends React.HTMLAttributes<HTMLDivElement> {
children: string;
}
export function RenderDots({ children, className, ...props }: RenderDotsProps) {
return (
<div {...props} className={cn('flex gap-1', className)}>
{children.split(".").map((str, index) => {
return (
<div className="flex items-center gap-1" key={str + index}>
{index !== 0 && <ChevronRight className="flex-shrink-0 !w-3 !h-3 top-[0.5px] relative" />}
<span>{str}</span>
</div>
);
})}
</div>
);
}