diff --git a/rnd/autogpt_builder/src/components/CustomNode/NodeFooter.tsx b/rnd/autogpt_builder/src/components/CustomNode/NodeFooter.tsx index e69de29bb2..93dbe75680 100644 --- a/rnd/autogpt_builder/src/components/CustomNode/NodeFooter.tsx +++ b/rnd/autogpt_builder/src/components/CustomNode/NodeFooter.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import { Button } from '../ui/button'; + +interface NodeFooterProps { + toggleProperties: () => void; + toggleAdvancedSettings: () => void; + hasOptionalFields: boolean; +} + +export const NodeFooter: React.FC = ({ + toggleProperties, + toggleAdvancedSettings, + hasOptionalFields, +}) => { + return ( +
+ + {hasOptionalFields && ( + + )} +
+ ); +}; \ No newline at end of file diff --git a/rnd/autogpt_builder/src/components/CustomNode/NodeHeader.tsx b/rnd/autogpt_builder/src/components/CustomNode/NodeHeader.tsx index e69de29bb2..f9255aec9f 100644 --- a/rnd/autogpt_builder/src/components/CustomNode/NodeHeader.tsx +++ b/rnd/autogpt_builder/src/components/CustomNode/NodeHeader.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import { beautifyString } from '@/lib/utils'; + +interface NodeHeaderProps { + title: string; +} + +export const NodeHeader: React.FC = ({ title }) => { + return ( +
+
{beautifyString(title.replace(/Block$/, ''))}
+
+ ); +}; \ No newline at end of file diff --git a/rnd/autogpt_builder/src/components/CustomNode/NodeProperties.tsx b/rnd/autogpt_builder/src/components/CustomNode/NodeProperties.tsx index e69de29bb2..a3daaa12b5 100644 --- a/rnd/autogpt_builder/src/components/CustomNode/NodeProperties.tsx +++ b/rnd/autogpt_builder/src/components/CustomNode/NodeProperties.tsx @@ -0,0 +1,24 @@ +import React from 'react'; + +interface NodePropertiesProps { + status: string | undefined; + outputData: any; +} + +export const NodeProperties: React.FC = ({ status, outputData }) => { + return ( +
+

Node Output

+

+ Status:{' '} + {typeof status === 'object' ? JSON.stringify(status) : status || 'N/A'} +

+

+ Output Data:{' '} + {typeof outputData === 'object' + ? JSON.stringify(outputData) + : outputData || 'N/A'} +

+
+ ); +}; \ No newline at end of file