Skip to content

Automate browser based workflows with AI

579 B
Raw Blame
import type { WorkflowRunBlock } from "../../types/workflowRunTypes";
import { GoalText, Section } from "./shared";

type Props = {
  block: WorkflowRunBlock;
};

function BlockDetailGeneric({ block }: Props) {
  return (
    <div className="space-y-4 px-3 py-3 empty:hidden">
      {block.prompt && (
        <Section title="Prompt">
          <GoalText text={block.prompt} />
        </Section>
      )}
      {block.body && (
        <Section title="Body">
          <GoalText text={block.body} />
        </Section>
      )}
    </div>
  );
}

export { BlockDetailGeneric };