import { FC } from 'react'; import Link from '../link/link'; import Tip from '../tip/tip'; import { ElementContent } from '../../types'; interface DeprecatedWarningProps { alternativeName: string; alternativeLink: string; additionalContent: ElementContent; } const DeprecatedWarning: FC = ({ alternativeName, alternativeLink, additionalContent }) => ( <> This is a legacy component and will be deprecated in the next major version. Please consider using the {alternativeName} component for your needs instead. {additionalContent} ); export default DeprecatedWarning;