import React from "react"; import { BsListOl } from "react-icons/bs"; import { FiCode, FiImage, FiLink2, FiList } from "react-icons/fi"; import { IconType } from "react-icons/lib"; const Icon = (v: React.ReactNode): IconType => ({ size }) => { return {v}; }; const options = [ { value: "paragraph", label: "P", icon: Icon("p"), }, { value: "preformatted", label: "PRE", icon: Icon("pre"), }, { value: "heading1", label: "H1", icon: Icon("h1"), }, { value: "heading2", label: "H2", icon: Icon("h2"), }, { value: "heading3", label: "H3", icon: Icon("h3"), }, { value: "heading4", label: "H4", icon: Icon("h4"), }, { value: "heading5", label: "H5", icon: Icon("h5"), }, { value: "heading6", label: "H6", icon: Icon("h6"), }, { value: "strong", label: "Strong", icon: Icon(b), }, { value: "em", label: "em", icon: Icon(I), }, { value: "hyperlink", label: "hyperlink", icon: Icon(), }, { value: "image", label: "image", icon: Icon(), }, { value: "embed", label: "embed", icon: Icon(), }, { value: "list-item", label: "list", icon: Icon(), }, { value: "o-list-item", label: "o", icon: Icon(), }, { value: "rtl", label: "rtl", icon: Icon("rtl"), }, ]; export const optionValues = options.map((e) => e.value); export default options;