WS Tool fixes: cURL modal, Clio Only

This commit is contained in:
mDuo13
2025-09-09 13:35:57 -07:00
parent f31fb25420
commit c68c9f975f
9 changed files with 99 additions and 69 deletions

View File

@@ -0,0 +1,26 @@
import { useThemeHooks } from '@redocly/theme/core/hooks';
export function ClioOnlyIcon () {
const { useTranslate } = useThemeHooks()
const { translate } = useTranslate()
return (
<span
className="status clio_only"
title={translate("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(" Clio only")}
</span>
)
}