Custom hook to handle selection changes
Optional
initial selections
event listener
selections, selections setter, new selection reference, updateSelection, canSelect, enableSelect
Custom hook to handle selection changes