import Switch from "./component"; import settings from "./settings"; export const onListItem = (hook, payload, actions) => { if (hook.id === "webcomponent") { return [settings]; } }; export const onComponentRender = (hook, payload, actions) => { if (hook.id === "webcomponent" && payload.type === "Switch") { return [Switch]; } };