import * as React from "react"; import { NewWebComponentProps, PluginProps } from "./types"; import { ComponentTypes } from "../types"; import { V1ObjectWrapper, convertProperties } from "../V1ObjectWrapper"; export const NewWebComponent: React.FC = ({ style = {}, properties = {}, myCustomProperty = { backgroundColor: "#2096D3" }, }) => { return (

My New Component

); }; const NewWebComponentPlugin: React.FC = ({ settings }) => { const properties = convertProperties(settings.properties); return ( ); }; export const onComponentRender = (hook, payload, actions) => { if ( hook.id === "webcomponent" && payload.type === ComponentTypes.NEWWEBCOMPONENT ) { return [NewWebComponentPlugin]; } }; export default NewWebComponent;