Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
import type { ReactNode } from "react";
import { usePageSlots } from "@/store/PageSlots";
function WorkflowFindingsBoundary({
workflowPermanentIds,
children,
}: Readonly<{ workflowPermanentIds: readonly string[]; children: ReactNode }>) {
const { workflowFindingsScope: Scope } = usePageSlots();
return Scope ? (
<Scope workflowPermanentIds={workflowPermanentIds}>{children}</Scope>
) : (
<>{children}</>
);
}
function WorkflowFindingsButton(
props: Readonly<{
workflowPermanentId: string;
title?: string;
surface: "list" | "editor";
}>,
) {
const { workflowFindingsTrigger: Trigger } = usePageSlots();
return Trigger ? <Trigger {...props} /> : null;
}
export { WorkflowFindingsBoundary, WorkflowFindingsButton };