"use client";
import { useMemo } from "react";
import { useTableConfig } from "./TableConfigurationProvider.js";
/**
 * @since 6.0.0
 * @internal
 */ export function useTableSectionConfig(options) {
    const { type, lineWrap: propLineWrap, hoverable } = options;
    // update the table configuration with the custom overrides for the `<thead>/<tfoot>`
    const { dense, hAlign, vAlign, lineWrap, disableHover, disableBorders } = useTableConfig({
        lineWrap: propLineWrap,
        disableHover: !hoverable
    });
    return useMemo(()=>({
            dense,
            header: type === "header",
            hAlign,
            vAlign,
            lineWrap,
            disableBorders,
            disableHover
        }), [
        dense,
        type,
        hAlign,
        vAlign,
        lineWrap,
        disableBorders,
        disableHover
    ]);
}

//# sourceMappingURL=useTableSectionConfig.js.map