import React from "react";
import { useRootElement } from "../context";
import * as styles from "./styles";
export function Card({ children }) {
    const { isOpen } = useRootElement();
    if (!isOpen) {
        return null;
    }
    return React.createElement("div", { className: styles.container }, children);
}
//# sourceMappingURL=index.js.map