mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00

* Adjust editor config Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Erik Michelson <github@erik.michelson.eu>
25 lines
806 B
TypeScript
25 lines
806 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import React from 'react'
|
|
import { Alert } from 'react-bootstrap'
|
|
import { Trans, useTranslation } from 'react-i18next'
|
|
import links from '../../../../links.json'
|
|
import { TranslatedExternalLink } from '../../../common/links/translated-external-link'
|
|
|
|
export const DeprecationWarning: React.FC = () => {
|
|
useTranslation()
|
|
|
|
return (
|
|
<Alert data-cy={ 'yaml' } className={ 'mt-2' } variant={ 'warning' }>
|
|
<span className={ 'text-wrap' }>
|
|
<Trans i18nKey={ 'renderer.sequence.deprecationWarning' }/>
|
|
</span>
|
|
<br/>
|
|
<TranslatedExternalLink i18nKey={ 'common.readForMoreInfo' } className={ 'text-primary' } href={ links.faq }/>
|
|
</Alert>
|
|
)
|
|
}
|