import { html, nothing } from "lit";
const renderResultChildrenGuard = ({ props })=>(children)=>{
        if (!props.inheritTemplates && !props.resultTemplateRegistered) return nothing;
        if (!props.inheritTemplates && props.templateHasError) return html`<slot></slot>`;
        return html`${children}`;
    };
export { renderResultChildrenGuard };
