A custom hook that manages the selection of rows in a list.

  • Parameters

    • Optional__namedParameters: Partial<IParams>

    Returns {
        deselectAll: () => void;
        listProps: {
            onSelectedRows: (rowIds: RowId[]) => void;
            selectedRows: RowId[];
        };
        selectedRows: RowId[];
        setSelectedRows: any;
    }

    • An object containing the selected rows, list props, and a function to deselect all rows.