-
-
- Logged in as {session.user.name}
-
-
- Logout
-
-
-
- ((modalToggleRef.current as HTMLInputElement).checked = false)}
- >
- View profile
-
- ((modalToggleRef.current as HTMLInputElement).checked = false)}
- >
- Account settings
-
-
+
+ {
+ setActiveTab("guest");
+ }}
+ className={
+ "tab tab-bordered tab-border-2 flex-grow rounded-tl-lg" +
+ (activeTab === "guest"
+ ? " tab-active text-base-content"
+ : " text-base-content border-opacity-10 hover:border-opacity-30")
+ }
+ >
+ Guest
+
+ setActiveTab("login")}
+ className={
+ "tab tab-bordered tab-border-2 flex-grow rounded-tl-lg" +
+ (activeTab === "login"
+ ? " tab-active"
+ : " text-base-content border-opacity-10 hover:border-opacity-30")
+ }
+ >
+ Login
+
+ setActiveTab("register")}
+ className={
+ "tab tab-bordered tab-border-2 flex-grow rounded-tl-lg" +
+ (activeTab === "register"
+ ? " tab-active"
+ : " text-base-content border-opacity-10 hover:border-opacity-30")
+ }
+ >
+ Register
+
+
-
- ) : (
- <>
-
- {
- setActiveTab("guest");
- }}
- className={
- "tab tab-bordered tab-border-2 flex-grow rounded-tl-lg" +
- (activeTab === "guest"
- ? " tab-active text-base-content"
- : " text-base-content border-opacity-10 hover:border-opacity-30")
- }
- >
- Guest
-
- setActiveTab("login")}
- className={
- "tab tab-bordered tab-border-2 flex-grow rounded-tl-lg" +
- (activeTab === "login"
- ? " tab-active"
- : " text-base-content border-opacity-10 hover:border-opacity-30")
- }
- >
- Login
-
- setActiveTab("register")}
- className={
- "tab tab-bordered tab-border-2 flex-grow rounded-tl-lg" +
- (activeTab === "register"
- ? " tab-active"
- : " text-base-content border-opacity-10 hover:border-opacity-30")
- }
- >
- Register
-
-
-
-
- >
- )}
+
>