import { memo } from 'react' import { useTranslation } from 'react-i18next' import { useWorkflow } from '../hooks' import { useStore } from '../store' import { ClockRefresh } from '@/app/components/base/icons/src/vender/line/time' const RestoringTitle = () => { const { t } = useTranslation() const { formatTimeFromNow } = useWorkflow() const publishedAt = useStore(state => state.publishedAt) return (
{t('workflow.common.latestPublished')} {formatTimeFromNow(publishedAt)}
) } export default memo(RestoringTitle)