[MemoryGraph] Replace legend with buttons that let the user select which events and stages to show (see description)
- The buttons should open dialogs
- The dialogs should show a list of all the events or stages
- The list should have a checkbox in front of each event or stage which can be toggled
- It should be possible to search in case of many events or stages (will definitely be the case)
- Make and reuse a component for the dialogs. It should accept a title prop, an options prop (name and whether enabled), and a callback to change the state after a choice is made
- The list should be scrollable
Figma: