// SPDX-License-Identifier: AGPL-3.0-or-later import {GenericErrorModal} from '@app/features/app/components/alerts/GenericErrorModal'; import RuntimeConfig from '@app/features/app/state/RuntimeConfig'; import * as ModalCommands from '@app/features/ui/commands/ModalCommands'; import {modal} from '@app/features/ui/commands/ModalCommands'; import {msg} from '@lingui/core/macro'; import {useLingui} from '@lingui/react/macro'; import {observer} from 'mobx-react-lite'; const CONTENT_BLOCKED_DESCRIPTOR = msg({ message: 'Content blocked', comment: 'Short label in the authentication content blocked handler. Keep the tone plain and specific.', }); const YOUR_ACTION_COULD_NOT_BE_COMPLETED_BECAUSE_IT_DESCRIPTOR = msg({ message: 'Your action could not be completed because it was flagged by our safety systems. If you believe this is a mistake, please contact support.', comment: 'Modal body shown when the safety system blocks the requested action. Keep plain and calm; offer support path.', }); const YOUR_ACTION_COULD_NOT_BE_COMPLETED_SELF_HOSTED_DESCRIPTOR = msg({ message: 'Your action could not be completed because it was flagged by our safety systems. If you believe this is a mistake, please contact the administrators of this instance.', comment: 'Modal body shown on a self-hosted instance when the safety system blocks the requested action. Keep plain and calm.', }); const ContentBlockedModal = observer(() => { const {i18n} = useLingui(); return ( ); }); export function showContentBlockedModal(): void { ModalCommands.push( modal(() => ( )), ); }