"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DividerWithText = void 0;
var react_1 = __importDefault(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var Box_1 = __importDefault(require("@mui/material/Box"));
var Typography_1 = __importDefault(require("@mui/material/Typography"));
var styles_1 = require("./styles");
var DividerWithText = function (_a) {
    var children = _a.children, className = _a.className;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement(Box_1.default, { "data-reltio-id": "divider-with-text", className: (0, classnames_1.default)(styles.root, className) },
        react_1.default.createElement(Box_1.default, { className: styles.border }),
        react_1.default.createElement(Typography_1.default, { className: styles.text }, children),
        react_1.default.createElement(Box_1.default, { className: styles.border })));
};
exports.DividerWithText = DividerWithText;
