import { html, nothing } from "lit";
const renderQueryErrorLink = ({ props })=>{
    const getErrorLink = ()=>{
        switch(props.errorType){
            case 'NoEndpointsException':
                return 'https://docs.coveo.com/en/mcc80216';
            case 'InvalidTokenException':
                return 'https://docs.coveo.com/en/102';
            case 'OrganizationIsPausedException':
                return 'https://docs.coveo.com/en/1684';
            default:
                return null;
        }
    };
    const link = getErrorLink();
    return link ? html`<a
        href=${link}
        part="doc-link"
        class="btn-primary mt-10 inline-block p-3"
      >
        ${props.i18n.t('coveo-online-help')}
      </a>` : nothing;
};
export { renderQueryErrorLink };
