Hello there 👋 I'm currently trying to have a component, which render function depends on some props of previous/next component. For example if previous component is X, background colour is red, if next component is Y, add some extra padding, etc. What would be the best approach to go about it?
I was able to kinda got it working by getting appState.data.content from usePuck, but this doesn't feel right and I would need to wrap the Render component with Puck to get the Provider.
Maybe there is something that can be run after each change, to generate new props or something? Any help appreciated.