-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { UserPartial } from "@/utils/db/kv.types.ts"; | ||
import Selector from "$tabler/selector.tsx"; | ||
import Dropdown from "@/islands/components/pickers/dropdown.tsx"; | ||
import CirclePlus from "$tabler/circle-plus.tsx"; | ||
import Settings from "$tabler/settings.tsx"; | ||
import UserCircle from "$tabler/user-circle.tsx" | ||
|
||
const NavbarDropDown = ({ user }: { user: UserPartial }) => { | ||
return ( | ||
<Dropdown | ||
className="ml-auto mr-1 md:mr-2 z-30 focus:outline-none my-auto" | ||
options={[ | ||
{ | ||
content: ( | ||
<div class="flex items-center"> | ||
<CirclePlus class="w-5 h-5 mr-2" /> <p>New Team</p> | ||
</div> | ||
), | ||
onClick: () => alert("Teams is coming soon!"), | ||
}, | ||
{ | ||
content: ( | ||
<div class="flex items-center"> | ||
<Settings class="w-5 h-5 mr-2" /> <p>Settings</p> | ||
</div> | ||
), | ||
onClick: () => alert("Settings is coming soon!"), | ||
}, | ||
]} | ||
> | ||
<button class="flex p-1 md:px-3 md:py-1.5 items-center hover:bg-gray-200 transition md:rounded-md rounded-full"> | ||
<p class="font-medium hidden md:block">{user.email.split("@")[0]}</p> | ||
<Selector class="w-5 h-5 ml-2 hidden md:block" /> | ||
<UserCircle class="w-6 h-6 block md:hidden" /> | ||
</button> | ||
</Dropdown> | ||
); | ||
}; | ||
|
||
export default NavbarDropDown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters