Add not-enabled component

This commit is contained in:
mDuo13
2024-01-17 16:28:02 -08:00
parent f98a23b9c2
commit 3eb752159b
2 changed files with 14 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import * as React from 'react';
// @ts-ignore
import dynamicReact from '@markdoc/markdoc/dist/react';
import { usePageSharedData } from '@portal/hooks';
import { usePageSharedData, useTranslate } from '@portal/hooks';
import { Link } from '@portal/Link';
import { idify } from '../helpers';
@@ -139,3 +139,10 @@ export function Badge(props: {
function shieldsIoEscape(s: string) {
return s.trim().replaceAll('-', '--').replaceAll('_', '__')
}
export function NotEnabled() {
const { translate } = useTranslate();
return (
<span className="status not_enabled" title={translate("This feature is not currently enabled on the production XRP Ledger.")}><i className="fa fa-flask"></i></span>
)
}