"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFirstCell = getFirstCell;
exports.focusInitialTableTarget = focusInitialTableTarget;
const table_focus_1 = require("./table-focus");
function getFirstCell(tableRef) {
    return tableRef.querySelector("td, th");
}
function focusInitialTableTarget(tableRef) {
    if (!tableRef) {
        return null;
    }
    const firstCell = getFirstCell(tableRef);
    return firstCell ? (0, table_focus_1.focusCell)(firstCell) : null;
}
//# sourceMappingURL=table-cell.js.map