import { jsx as _jsx } from "react/jsx-runtime";
export function RenderHook(props) {
    if (!props.Hook)
        return null;
    const hookResult = props.Hook(props.props);
    const html = hookResult && hookResult.html;
    if (html) {
        return _jsx("span", { dangerouslySetInnerHTML: { __html: html } });
    }
    else {
        return hookResult;
    }
}
export function getAccessModeLabelText(schema) {
    return (schema.readOnly && 'read-only') || (schema.writeOnly && 'write-only') || null;
}
//# sourceMappingURL=RenderHook.js.map