"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useExemplary = void 0;
const useCntrlContext_1 = require("../provider/useCntrlContext");
const useLayoutContext_1 = require("../components/useLayoutContext");
const useExemplary = () => {
    var _a, _b;
    const { layouts } = (0, useCntrlContext_1.useCntrlContext)();
    const layout = (0, useLayoutContext_1.useLayoutContext)();
    const exemplary = (_b = (_a = layouts.find(l => l.id === layout)) === null || _a === void 0 ? void 0 : _a.exemplary) !== null && _b !== void 0 ? _b : 1;
    return exemplary;
};
exports.useExemplary = useExemplary;
