//=========================================== // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template //=========================================== import { Button } from "@hexclave/ui"; import { useUser } from "../../../lib/hooks"; import { useTranslation } from "../../../lib/translations"; import { Section } from "../section"; export function SignOutSection(props?: { mockMode?: boolean }) { const { t } = useTranslation(); const user = useUser({ or: props?.mockMode ? "return-null" : "throw" }); const handleSignOut = async () => { if (props?.mockMode) { // Mock mode - just show an alert or do nothing alert("Mock mode: Sign out clicked"); return; } if (user) { await user.signOut(); } }; return (
); }