mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
27 lines
753 B
TypeScript
27 lines
753 B
TypeScript
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
|
|
export function ClioOnlyIcon () {
|
|
const { useTranslate } = useThemeHooks()
|
|
const { translate } = useTranslate()
|
|
return (
|
|
<span
|
|
className="status clio_only"
|
|
title={translate("resources.dev-tools.websocket-api.clio-only-tooltip", "This method is only available from the Clio server.")}
|
|
>
|
|
<i className="fa fa-exclamation-circle"></i>
|
|
</span>
|
|
)
|
|
}
|
|
|
|
export function ClioOnlyNotice() {
|
|
const { useTranslate } = useThemeHooks()
|
|
const { translate } = useTranslate()
|
|
return (
|
|
<span className="clio-only-notice"
|
|
>
|
|
<ClioOnlyIcon />
|
|
{translate("resources.dev-tools.websocket-api.clio-only-badge", " Clio only")}
|
|
</span>
|
|
)
|
|
}
|