Skip to content
Snippets Groups Projects

Avatar reusable component

Closed Cindy Joan requested to merge LN-1253-ce-user-menu-on-side-bar into dev
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
import { usePage } from "@inertiajs/react";
import ThemeSwitcher from "./layout/ThemeSwitcher";
export default function Avatar() {
const {auth} = usePage().props
return (
<div className="h-9 w-9 rounded-full bg-gray-400">
{auth.user ? <img src={auth.avatar} alt='avatar' /> : ''}
</div>
)
}
\ No newline at end of file
Loading