saleor-dashboard/src/components/Hr.tsx

33 lines
677 B
TypeScript
Raw Normal View History

2019-06-19 14:40:52 +00:00
import {
createStyles,
Theme,
withStyles,
WithStyles
} from "@material-ui/core/styles";
import classNames from "classnames";
2019-08-09 10:26:22 +00:00
import React from "react";
2019-06-19 14:40:52 +00:00
interface HrProps {
className?: string;
}
const styles = (theme: Theme) =>
createStyles({
root: {
backgroundColor: theme.overrides.MuiCard.root.borderColor,
border: "none",
display: "block",
height: 1,
margin: 0,
width: "100%"
}
});
export const Hr = withStyles(styles, { name: "Hr" })(
({ className, classes }: HrProps & WithStyles<typeof styles>) => (
<hr className={classNames(classes.root, className)} />
)
);
Hr.displayName = "Hr";
export default Hr;