import type { FC } from 'react' import type { ScheduleTriggerNodeType } from './types' import type { NodeProps } from '@/app/components/workflow/types' import * as React from 'react' import { useTranslation } from 'react-i18next' import { getNextExecutionTime } from './utils/execution-time-calculator' const i18nPrefix = 'nodes.triggerSchedule' const Node: FC> = ({ data, }) => { const { t } = useTranslation() return (
{t(`${i18nPrefix}.nextExecutionTime`, { ns: 'workflow' })}
{getNextExecutionTime(data)}
) } export default React.memo(Node)