@navinc/base-react-components
Version:
Nav's Pattern Library
16 lines • 858 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const styled_components_1 = __importDefault(require("styled-components"));
const is_rebrand_1 = __importDefault(require("./is-rebrand"));
const Divider = styled_components_1.default.hr.withConfig({ displayName: "brc-sc-Divider", componentId: "brc-sc-18caidp" }) `
border-radius: ${({ theme }) => ((0, is_rebrand_1.default)(theme) ? '100px' : '4px')};
border: none;
height: ${({ theme }) => ((0, is_rebrand_1.default)(theme) ? '4px' : '8px')};
background-color: ${({ theme }) => ((0, is_rebrand_1.default)(theme) ? theme.navNeutral200 : theme.neutral100)};
margin: 0;
`;
exports.default = Divider;
//# sourceMappingURL=divider.js.map