import * as React from "react"; import { has } from "lodash"; import { ComponentTypes } from "../types"; import { EditorMode } from "@sc/modules/v2/Editor/types"; // import { Icon, IconTypes } from "../Icon"; import Icon from "../Icon"; import { ListItemTypes, ListItemProps, PluginProps } from "./types"; export const ListItem: React.FC = ({ style, properties, icon, iconSource, children, iconStyle, contentStyle, type, html, mode, }) => { // const Icon = icon; return (
  • {icon && (
    )}
    {children && children}
  • ); }; const ListItemPluginComponent: React.FC = ({ settings }) => { return ; }; export const onComponentRender = (hook, payload, actions) => { if (hook.id === "webcomponent" && payload.type === ComponentTypes.LISTITEM) { return [ListItemPluginComponent]; } }; export default ListItem;