AutomationCreator

Description#

This component renders a form with everything needed to set up a new automation.

Import#

import { AutomationCreator } from "@rollouthq/connect-react";

Usage#

Here's a basic usage example:

<AutomationCreator
onAutomationCreated={() => navigate("/automations")}
onBeforeAutomationCreate={({ automationData }) => {
return {
automationData: {
...automationData,
customData: {
arbitraryProp: "abc123",
},
},
};
}}
/>