import { sanitizeHtml } from "../../utils/sanitizeHtml"; export type Props = { items: string; style?: "ordered" | "unordered"; }; export default function List({ items, style }: Props) { const entries = items.split("\n").filter(Boolean); const ordered = style === "ordered"; const baseClass = "pl-6 my-4 text-[1.0625rem] leading-[1.75] space-y-2"; if (ordered) { return (