import { sanitizeHtml } from "../../utils/sanitizeHtml"; type Step = { title: string; description?: string }; export type Props = { title?: string; /** JSON-encoded Step[] */ steps: string; }; export default function Steps({ title, steps }: Props) { let list: Step[] = []; try { const parsed = JSON.parse(steps ?? "[]"); if (Array.isArray(parsed)) list = parsed; } catch { /* ignore */ } return (