+ CodeShare +
+ ); +}; + +export default Logo; diff --git a/components/containers/navbar.tsx b/components/containers/navbar.tsx new file mode 100644 index 0000000..27e7bd2 --- /dev/null +++ b/components/containers/navbar.tsx @@ -0,0 +1,85 @@ +import React, { ComponentProps } from "react"; +import { cn } from "~/lib/utils"; +import Link from "~/renderer/link"; +import { Button } from "../ui/button"; +import Logo from "./logo"; +import { useAuth } from "~/hooks/useAuth"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "../ui/dropdown-menu"; +import { FaChevronDown } from "react-icons/fa"; +import trpc from "~/lib/trpc"; + +const Navbar = () => { + const { user } = useAuth(); + const logout = trpc.auth.logout.useMutation({ + onSuccess() { + window.location.reload(); + }, + }); + + return ( + <> + + +{error}
: null} ++ Collaborate with Ease, Share with the World +
- {projects.map((project: any) => ( - - {project.title} - - ))} -{project.title}
+{project.user.name}
+