UNPKG

@churchapps/apphelper

Version:

Library of helper functions for React and NextJS ChurchApps

7 lines 451 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Box } from "@mui/material"; export function TabPanel(props) { const { children, value, index, ...other } = props; return (_jsx("div", { role: "tabpanel", hidden: value !== index, id: `simple-tabpanel-${index}`, "aria-labelledby": `simple-tab-${index}`, ...other, children: value === index && (_jsx(Box, { sx: { p: 3 }, children: children })) })); } //# sourceMappingURL=TabPanel.js.map