import * as React from 'react'; import { _ } from '@joplin/lib/locale'; import bridge from '../services/bridge'; const joplinCloudCreditsUrl = 'https://joplincloud.com/users/me'; interface Props { // Container class — each caller owns its own SCSS scope // (chat-panel > .degraded-status vs. .ai-status.-degraded). className: string; } const AiDegradedNotice: React.FC = ({ className }) => (
{_('AI is running in reduced-quality mode — monthly allowance exceeded. Credits replenish on a rolling 30-day basis, or you can')} {' '} { e.preventDefault(); void bridge().openExternal(joplinCloudCreditsUrl); }} >{_('buy more credits')} {'.'}
); export default AiDegradedNotice;