import { Badge, Button, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@colineapp/ui";
import { GROUPS, RULES } from "./api";
import { entryPath, slug } from "./slug";
/** Inline `code` in the reference's prose. */
export function Prose({ text }: { text: string }) {
const parts = text.split(/(`[^`]+`)/g);
return (
<>
{parts.map((part, index) =>
part.startsWith("`") && part.endsWith("`") ? (
{part.slice(1, -1)}
) : (
part
),
)}
>
);
}
export function Rules() {
return (