import { OutputBlockData } from "@editorjs/editorjs"; export const list = ({ data }: OutputBlockData) => { let listStyle = "ul"; if (data.style === "ordered") { listStyle = "ol"; } const recursor = (items: any, listStyle: string) => { if (!items || !items.length) { return ""; } const list = items.map((item: any) => { // If it's legacy format (just strings) if (typeof item === "string") { return `