import { t } from 'i18next'; export type OutputType = { title: string; type?: string; }; type OutputProps = { list: Array; }; export function transferOutputs(outputs: Record) { return Object.entries(outputs).map(([key, value]) => ({ title: key, type: value?.type, })); } export function Output({ list }: OutputProps) { return (
{t('flow.output')}
    {list.map((x, idx) => (
  • {x.title}: {x.type}
  • ))}
); }