'use client' import { useAtomValue } from 'jotai' import { useTranslation } from 'react-i18next' import { UnsupportedDslNodesAlert } from '../../shared/components/unsupported-dsl-nodes-alert' import { createReleaseContentCheckFailedAtom, createReleaseMatchedReleaseAtom, createReleaseUnsupportedDslNodesAtom, } from '../state' export function ReleaseContentFeedback() { const { t } = useTranslation('deployments') const unsupportedDslNodes = useAtomValue(createReleaseUnsupportedDslNodesAtom) const matchedRelease = useAtomValue(createReleaseMatchedReleaseAtom) const releaseContentCheckFailed = useAtomValue(createReleaseContentCheckFailedAtom) return ( <> {matchedRelease && (
{t(($) => $['versions.releaseAlreadyExists'], { name: matchedRelease.displayName })}
)} {releaseContentCheckFailed && (
{t(($) => $['versions.releaseContentCheckFailed'])}
)} ) }