Refactoring to reuse many components between regular and admin users. Reduces amount of copy-pasted code.
Later when we have fully implemented auth, we can get the isAdmin props straight from some useUser hook, and we don't need to do prop-drilling anymore.
Refactoring to reuse many components between regular and admin users. Reduces amount of copy-pasted code.
Later when we have fully implemented auth, we can get the
isAdmin
props straight from someuseUser
hook, and we don't need to do prop-drilling anymore.