2019-06-19 14:40:52 +00:00
|
|
|
import {
|
|
|
|
createStyles,
|
|
|
|
Theme,
|
|
|
|
withStyles,
|
|
|
|
WithStyles
|
|
|
|
} from "@material-ui/core/styles";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
export interface TabContainerProps {
|
|
|
|
children: React.ReactNode | React.ReactNodeArray;
|
|
|
|
}
|
|
|
|
|
2019-10-28 16:16:49 +00:00
|
|
|
const styles = theme =>
|
2019-06-19 14:40:52 +00:00
|
|
|
createStyles({
|
|
|
|
root: {
|
|
|
|
borderBottom: `1px solid ${theme.overrides.MuiCard.root.borderColor}`
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
const TabContainer = withStyles(styles, {
|
|
|
|
name: "TabContainer"
|
|
|
|
})(({ classes, children }: TabContainerProps & WithStyles<typeof styles>) => (
|
|
|
|
<div className={classes.root}>{children}</div>
|
|
|
|
));
|
|
|
|
TabContainer.displayName = "TabContainer";
|
|
|
|
|
|
|
|
export default TabContainer;
|