Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,38 @@
import { Link } from "react-router";
import RightIcon from "~/components/ui/icons/RightIcon";
import clsx from "clsx";
import ColorHoverUtils from "~/utils/shared/colors/ColorHoverUtils";
import type { KnowledgeBaseDto } from "../../dtos/KnowledgeBaseDto";
export default function KbArticles({
kb,
items,
}: {
kb: KnowledgeBaseDto;
items: {
order: number;
title: string;
description: string;
href: string;
sectionId: string | null;
}[];
}) {
return (
<div className="rounded-md border border-border bg-background py-3">
{items.map((item) => {
return (
<div key={item.title} className={clsx("group", ColorHoverUtils.getBorder500(kb.color))}>
<Link to={item.href}>
<div className="flex items-center justify-between space-x-2 px-6 py-3 hover:bg-secondary">
<div className="">
<div className={clsx(" text-muted-foreground group-hover:text-foreground")}>{item.title}</div>
</div>
<RightIcon className={clsx("h-5 w-5 shrink-0 text-muted-foreground group-hover:text-foreground")} />
</div>
</Link>
</div>
);
})}
</div>
);
}