feat(overlays): add/remove overlay from store
Description
This PR focuses on adding functionality to manage overlayBioEntity state for multiple overlays. Bio entities are stored under key-value pairs as follows:
export type OverlaysBioEntityState = { overlaysId: number[]; data: { [overlayId: number]: { [modelId: number]: OverlayBioEntityRender[]; }; }; };
This way it's easier to add and remove new overlays.
Things done
- store management - adding / removing new overlays
- toggling on/off overlays in drawer -> currently displays only first overlay
Things to consider during code review
OverlayListItem covers test cases for useOverlay
hook.
Edited by Tadeusz Miesiąc