Create a context Preferences which has an initial value of preferences read from local storage.
On mounting, send a 'request' (in the meantime this is what is mocked - just a fn which returns a promise for a hardcoded object) which also stores to local storage
Have a usePreference(prefKey) (just a string or hard coded enums for type safety 🤔 )
An idea! Woah!
usePreference(prefKey)
(just a string or hard coded enums for type safety 🤔 )