"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useCarouselTile = void 0;
var useScrollFocusedIntoView_1 = require("../scroll/useScrollFocusedIntoView");
exports.useCarouselTile = function (containerRef, _a) {
    var selected = _a.selected, onSelect = _a.onSelect;
    var scrollIntoView = useScrollFocusedIntoView_1.useScrollFocusedIntoView(containerRef);
    var tileProps = function (num) { return ({
        className: num === selected ? 'lwc-selected' : '',
        onClick: function () {
            onSelect(num);
        },
        onFocus: scrollIntoView.onFocus,
        selected: num === selected
    }); };
    return tileProps;
};
