import {TableColumnResizeStateContext as $952ff69934390c62$export$a2680a798823803c} from "./Table.js";
import {TableLayout as $eg0oz$TableLayout} from "react-stately/private/layout/TableLayout";
import {useContext as $eg0oz$useContext, useMemo as $eg0oz$useMemo} from "react";

/*
 * Copyright 2024 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */ 


class $396c7d22512c1acc$export$62444c3c724b1b20 extends (0, $eg0oz$TableLayout) {
    // Invalidate the layout whenever the column widths change.
    useLayoutOptions() {
        // This is not a React class component, just a regular class.
        /* eslint-disable react-hooks/rules-of-hooks */ let colResizeState = (0, $eg0oz$useContext)((0, $952ff69934390c62$export$a2680a798823803c));
        return (0, $eg0oz$useMemo)(()=>({
                columnWidths: colResizeState === null || colResizeState === void 0 ? void 0 : colResizeState.columnWidths
            }), [
            colResizeState === null || colResizeState === void 0 ? void 0 : colResizeState.columnWidths
        ]);
    }
}


export {$396c7d22512c1acc$export$62444c3c724b1b20 as TableLayout};
//# sourceMappingURL=TableLayout.js.map
