Add profile page

This commit is contained in:
anime committed 2024-09-10 15:02:17 +06:00
1 parent a106044047
commit 95674a489c
7 files changed
+150 -26

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import { cn } from "@/lib/utils";
import { signOut } from "next-auth/react";
interface ILogoutButtonProps {
className?: string;
}
const LogoutButton: React.FC<ILogoutButtonProps> = ({
className,
}: ILogoutButtonProps) => {
return (
<button
type="button"
className={cn(
"p-[10px] border border-red-500 rounded-sm font-semibold leading-5 text-red-500",
className
)}
onClick={() =>
signOut({
callbackUrl: "/",
})
}
>
Выйти из аккаунта
</button>
);
};
export default LogoutButton;