2026-06-18 11:02:31 +02:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { LogOut } from "lucide-react";
|
|
|
|
|
|
|
|
|
|
export function SignOutButton({ action }: { action: () => Promise<void> }) {
|
|
|
|
|
return (
|
|
|
|
|
<form action={action}>
|
|
|
|
|
<button
|
|
|
|
|
type="submit"
|
2026-06-22 15:19:38 +02:00
|
|
|
className="flex items-center gap-1.5 rounded-full px-2.5 py-1.5 text-sm font-medium text-fg/70 transition-colors hover:bg-white/5 hover:text-fg sm:px-3.5"
|
2026-06-18 11:02:31 +02:00
|
|
|
title="Wyloguj się"
|
|
|
|
|
>
|
|
|
|
|
<LogOut size={16} />
|
|
|
|
|
<span className="hidden sm:inline">Wyloguj</span>
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
);
|
|
|
|
|
}
|