2024-04-01 17:31:31 +02:00
|
|
|
import {
|
|
|
|
Tooltip,
|
|
|
|
TooltipContent,
|
|
|
|
TooltipTrigger,
|
|
|
|
} from "@/components/ui/tooltip";
|
2024-04-16 22:55:24 +02:00
|
|
|
import { isDesktop } from "react-device-detect";
|
2024-04-01 17:31:31 +02:00
|
|
|
import { VscAccount } from "react-icons/vsc";
|
|
|
|
|
2024-04-29 17:59:27 +02:00
|
|
|
type AccountSettingsProps = {
|
|
|
|
className?: string;
|
|
|
|
};
|
|
|
|
export default function AccountSettings({ className }: AccountSettingsProps) {
|
2024-04-01 17:31:31 +02:00
|
|
|
return (
|
|
|
|
<Tooltip>
|
|
|
|
<TooltipTrigger asChild>
|
2024-04-16 22:55:24 +02:00
|
|
|
<div
|
2024-04-29 17:59:27 +02:00
|
|
|
className={`flex flex-col justify-center items-center ${isDesktop ? "rounded-lg text-secondary-foreground bg-secondary hover:bg-muted cursor-pointer" : "text-secondary-foreground"} ${className ?? ""}`}
|
2024-04-16 22:55:24 +02:00
|
|
|
>
|
|
|
|
<VscAccount className="size-5 md:m-[6px]" />
|
|
|
|
</div>
|
2024-04-01 17:31:31 +02:00
|
|
|
</TooltipTrigger>
|
|
|
|
<TooltipContent side="right">
|
|
|
|
<p>Account</p>
|
|
|
|
</TooltipContent>
|
|
|
|
</Tooltip>
|
|
|
|
);
|
|
|
|
}
|