"use client";
import Button from "@/components/button/PrimaryButton";
import PasswordField from "@/components/input/PasswordField";
import { Switch } from "@/components/ui/switch";
import Accordion from "@/components/utils/Accordion";
import Seperator from "@/components/utils/Seperator";
import { SmartIcon } from "@/components/utils/SmartIcon";
import { getI18nObject } from "@/lib/i18n";
import { glassSurfaceCard } from "@/lib/styles/glassSurface";
import { SettingsData } from "@/types/i18n/settings";
import { ArrowLeft, Key, TickCircle } from "iconsax-react";
import { useRouter } from "next/navigation";
import React, { Fragment, useState } from "react";
import { useTranslation } from "react-i18next";
function UserSettingsIndex() {
const router = useRouter();
const { t } = useTranslation("settings");
const data: SettingsData = getI18nObject(t, "data");
const [statisticalParticipation, setStatisticalParticipation] = useState(true);
const onSwitched = (e: React.MouseEvent) => {
const target = e.target as HTMLElement;
console.log("Save changed setting?", target.id);
};
const handleStatisticalToggle = (checked: boolean) => {
setStatisticalParticipation(checked);
console.log("Statistical participation:", checked);
};
const notifsTab = () => {
return (
{data.TabAuthenticator.Description} {data.TabAuthenticator.Tip} {guide.Description}{data.TabNotifications.Heading}
{data.TabPassword.Heading}
{data.TabAuthenticator.Heading}
{guide.Heading}
{data.StatisticalParticipation.Description}