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