import { PinOffset, UseColumnPinning } from '../types'; /** * Custom hook to compute sticky-position offsets for pinned columns. * Offsets are derived from the (already reordered) `columnOrder` + widths: pinned columns are * physically moved to the edges in `effectiveColumnOrder` (see useTableColumns), so this hook just * sums same-side widths before/after each pinned column to stack multiple pins per side at the edge. */ export default function useColumnPinning({ pinnedColumns, columnOrder, columnSizingState, columnInitialSize, }: UseColumnPinning): { getPinOffset: (columnKey: string) => PinOffset; };