"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TabPanel = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const TabPanel = (props) => {
    const { children, index, tabsId, value, ...rest } = props;
    const a11yProps = () => {
        return {
            id: `tabpanel-${tabsId}-${index}`,
            'aria-labelledby': `tab-${tabsId}-${index}`,
        };
    };
    return ((0, jsx_runtime_1.jsx)("div", { role: "tabpanel", hidden: value !== index, ...a11yProps, ...rest, children: children }));
};
exports.TabPanel = TabPanel;
exports.default = exports.TabPanel;
//# sourceMappingURL=TabPanel.js.map