Add profile page
This commit is contained in:
1 parent
a106044047
commit
95674a489c
7 files changed
+150
-26
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user