"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const react_1 = require("react");
const useLogic = ({ children, columns }) => {
    const gridColumnTemplate = () => {
        if (columns) {
            return columns.join(' ');
        }
        const childrenCount = react_1.Children.count(children);
        return `repeat(${childrenCount}, 1fr)`;
    };
    return { gridColumnTemplate };
};
exports.useLogic = useLogic;
