import * as React from "react"; import { IBodyProps, PluginProps } from "./types"; import { ComponentTypes } from "../types"; // import style from "./style"; export const Body: React.FC = ({ properties = {}, style = {}, testId = "", children, }) => { return (
{/* This is a test!! */} {children}
); }; const BodyPluginComponent: React.FC = ({ settings }) => { return ; }; export const onComponentRender = (hook, payload, actions) => { if (hook.if === "webcomponent" && payload.type === ComponentTypes.BODY) { return [BodyPluginComponent]; } }; export default Body;