import LaunchEditor from "@granity/icons/LaunchEditor"; import Logout from "@granity/icons/Logout"; import { AppMenu, Avatar, Box, BoxProps, IconButton, pxToRem, SvgIconProps } from "@granity/ui"; import { useRouter } from "next/navigation"; import { signOut } from "next-auth/react"; type AppBarStyles = { wrapper?: BoxProps; logoWrapper?: BoxProps; editorIcon?: SvgIconProps; }; const styles: AppBarStyles = { wrapper: { sx: { minHeight: pxToRem(175), display: "flex", alignItems: "center", justifyContent: "flex-end", }, }, editorIcon: { sx: { fontSize: pxToRem(30), }, }, }; const AppBar = () => { const router = useRouter(); const handleOpenEditor = () => { router.push("/editor"); }; return ( M} menuItems={[ { text: "Logout", onClick: () => signOut(), icon: , }, ]} /> ); }; export default AppBar;