{
authenticatedData ? (
-
{authenticatedData.email}
+
{authenticatedData.email}
)
: null
}
@@ -889,6 +850,82 @@ function metadataMap(ipLocationData: LocationData, authenticatedData: UserProfil
)
}
+interface AutomationComponentWrapperProps {
+ isMobileWidth: boolean;
+ callToAction: string;
+ createNew: boolean;
+ setIsCreating: (completed: boolean) => void;
+ setShowLoginPrompt: (showLoginPrompt: boolean) => void;
+ setNewAutomationData: (data: AutomationsData) => void;
+ authenticatedData: UserProfile | null;
+ isCreating: boolean;
+ ipLocationData: LocationData | null | undefined;
+ automation?: AutomationsData;
+}
+
+function AutomationComponentWrapper(props: AutomationComponentWrapperProps) {
+ return (
+ props.isMobileWidth ? (
+
{
+ props.setIsCreating(open);
+ }}>
+
+
+
+
+ Automation
+
+
+
+ ) :
+ (
+
+ )
+ );
+
+}
+
export default function Automations() {
const authenticatedData = useAuthenticatedData();
@@ -932,7 +969,7 @@ export default function Automations() {
}
}, [personalAutomations, allNewAutomations]);
- if (error) return
Failed to load
;
+ if (error) return
;
return (
@@ -950,7 +987,7 @@ export default function Automations() {
{
authenticatedData ? (
-
{authenticatedData.email}
+
{authenticatedData.email}
)
: null
}
@@ -986,34 +1023,18 @@ export default function Automations() {
Your Creations
{
- authenticatedData ? (
-
- )
+ authenticatedData ?
+
: (