import React from "react";
import { useRootElement } from "../context";
import { BottomSlider } from "~/sdks/LocalContent/components/BottomSlider";
export function Slider({ children }) {
    const { isOpen, onToggleIsOpen } = useRootElement();
    return (React.createElement(BottomSlider, { isOpen: isOpen, isExpanded: true, onExpandContract: onToggleIsOpen }, isOpen && children));
}
//# sourceMappingURL=index.js.map