How can I automatically add padding to nested lists that may vary in depth due to recursion?
Currently, my output looks like this:
https://i.stack.imgur.com/6anY9.png:
However, I would like it to look like this instead:
https://i.stack.imgur.com/dgSPB.png
When I apply nested styles, they remain consistent across all levels. I need the padding to increment with each subsequent level. Can anyone offer assistance? (All feedback is appreciated!)
The provided code snippet includes functions for rendering a tree structure using React and Material-UI components.