import { jsx as _jsx } from "react/jsx-runtime";
import DynamicComponent from '../shared/dynamic-component/dynamic-component';
import { useVariable } from '../shared/interactivity';
/**
 * Thin wrapper around DynamicComponent that allows for a variable to be passed in instead of a component instance.
 */
function PublicDynamicComponent(props) {
    const [component] = useVariable(props.component);
    return _jsx(DynamicComponent, { component: component });
}
export default PublicDynamicComponent;
//# sourceMappingURL=public-dynamic-component.js.map