import { jsx as _jsx } from "react/jsx-runtime";
import { cnb } from "cnbuilder";
import { forwardRef } from "react";
import { DISPLAY_NONE_CLASS } from "../utils/isElementVisible.js";
/**
 * This component can be a replacement for the `Slide` component when animations
 * are not required for changing the active tab contents.
 *
 * This should generally be used along with the `SimpleTabPanels` component.
 *
 * @see {@link https://react-md.dev/components/tabs | Tabs Demos}
 * @see {@link https://react-md.dev/components/tabs#disable-tab-panel-transition|Disable Tab Panel Transition Demo}
 * @since 6.0.0
 */ export const SimpleTabPanel = /*#__PURE__*/ forwardRef(function SimpleTabPanel(props, ref) {
    const { active, className, ...remaining } = props;
    return /*#__PURE__*/ _jsx("div", {
        ref: ref,
        ...remaining,
        className: cnb(!active && DISPLAY_NONE_CLASS, className)
    });
});

//# sourceMappingURL=SimpleTabPanel.js.map