import { jsx as _jsx } from "react/jsx-runtime";
import { memo } from 'react';
import { useAtomValue } from 'jotai';
import { OpenApiFooter } from '@redocly/theme/components/OpenApiDocs/hooks/OpenApiFooter';
import { globalOptionsAtom } from '../../jotai/store.js';
import { RenderHook } from '../RenderHook/index.js';
export function PageFooterComponent() {
    const { unstable_hooks: { MiddlePanelFooter }, } = useAtomValue(globalOptionsAtom);
    switch (true) {
        case Boolean(MiddlePanelFooter):
            return _jsx(RenderHook, { Hook: MiddlePanelFooter, props: undefined });
        case Boolean(OpenApiFooter):
            return _jsx(OpenApiFooter, {});
        default:
            return null;
    }
}
export const PageFooter = memo(PageFooterComponent);
//# sourceMappingURL=PageFooter.js.map