"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CardinalityMessage = void 0;
var react_1 = __importDefault(require("react"));
var Typography_1 = __importDefault(require("@mui/material/Typography"));
var helpers_1 = require("./helpers");
var styles_1 = require("./styles");
var CardinalityMessage = function (_a) {
    var cardinality = _a.cardinality;
    var styles = (0, styles_1.useStyles)();
    var cardinalityMessage = (0, helpers_1.getCardinalityMessage)(cardinality);
    return cardinalityMessage ? (react_1.default.createElement(Typography_1.default, { variant: "caption", className: styles.caption }, cardinalityMessage)) : null;
};
exports.CardinalityMessage = CardinalityMessage;
