import * as React from "react"; import { get } from "lodash"; import { ComponentTypes } from "../types"; import { V1ObjectWrapper, convertProperties } from "../V1ObjectWrapper"; import { SectionProps, PluginProps } from "./types"; export const Section: React.FC = ({ children, style, properties, mode, id, testId = "WC-SECTION-LIVE", }) => { return (
{children}
); }; const SectionPlugin: React.FC = ({ settings, children }) => { const properties = convertProperties(settings.properties); return (
{children}
); }; export const onComponentRender = (hook, payload, actions) => { if (hook.id === "webcomponent" && payload.type === ComponentTypes.SECTION) { return [SectionPlugin]; } }; export default Section;