feat(settings): restructure settings layout and separate route modules

This commit is contained in:
poyrazavsever
2026-07-20 10:25:40 +03:00
parent cc22c8ee1d
commit b424385667
34 changed files with 2867 additions and 1691 deletions
+29
View File
@@ -0,0 +1,29 @@
"use client";
import { useI18n } from "@/components/i18n/i18n-provider";
import { Button, Card, CardContent } from "poyraz-ui/atoms";
export default function SettingsError({
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
const { t } = useI18n();
return (
<Card>
<CardContent className="space-y-4 p-6 sm:p-8">
<h2 className="text-lg font-semibold text-foreground">
{t("settings.shell.errorTitle")}
</h2>
<p className="text-sm text-muted-foreground">
{t("settings.shell.errorDescription")}
</p>
<Button effect="shine" variant="default" onClick={reset}>
{t("settings.shell.retry")}
</Button>
</CardContent>
</Card>
);
}