saleor-dashboard/src/components/Hr.tsx

29 lines
587 B
TypeScript
Raw Normal View History

2019-10-30 14:34:24 +00:00
import { makeStyles } from "@material-ui/core/styles";
2019-06-19 14:40:52 +00:00
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;
}
2019-10-30 14:34:24 +00:00
const useStyles = makeStyles(theme => ({
root: {
backgroundColor: theme.palette.divider,
border: "none",
display: "block",
height: 1,
margin: 0,
width: "100%"
}
}));
2019-06-19 14:40:52 +00:00
2019-10-30 14:34:24 +00:00
export const Hr: React.FC<HrProps> = props => {
const { className } = props;
const classes = useStyles(props);
return <hr className={classNames(classes.root, className)} />;
};
2019-06-19 14:40:52 +00:00
Hr.displayName = "Hr";
export default Hr;