diff --git a/marketplace/src/layouts/Shell.tsx b/marketplace/src/layouts/Shell.tsx index 3b9edfd..0fc4353 100644 --- a/marketplace/src/layouts/Shell.tsx +++ b/marketplace/src/layouts/Shell.tsx @@ -4,6 +4,9 @@ import { useAuth } from '../context/AuthContext' export function Shell({ children }: { children: React.ReactNode }) { const { user, logout } = useAuth() + const isOwner = user?.role === 'owner' || user?.role === 'seller' + const isAdmin = user?.role === 'admin' + return (
@@ -11,20 +14,37 @@ export function Shell({ children }: { children: React.ReactNode }) {
MP

Marketplace FarmacĂȘutico B2B

-

Dashboard de Compras

+

+ {isAdmin ? 'Painel Administrativo' : isOwner ? 'Painel do Dono' : 'Dashboard'} +