Files
thoughts/thoughts-frontend/app/settings/federation/page.tsx
Gabriel Kaszewski c30243f1c8
Some checks failed
lint / lint (push) Failing after 7m10s
test / unit (push) Successful in 16m28s
test / integration (push) Failing after 17m52s
feat: add alsoKnownAs field to federation settings
2026-05-28 02:01:56 +02:00

26 lines
850 B
TypeScript

import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import { FederationPanel } from "@/components/federation/federation-panel";
import { MigrationSettings } from "@/components/federation/migration-settings";
export default async function FederationSettingsPage() {
const token = (await cookies()).get("auth_token")?.value;
if (!token) {
redirect("/login");
}
return (
<div className="space-y-6">
<div className="glass-effect glossy-effect bottom rounded-md shadow-fa-lg p-4">
<h3 className="text-lg font-medium">Federation</h3>
<p className="text-sm text-muted-foreground">
Manage remote follow requests, followers, and accounts you follow on
other instances.
</p>
</div>
<FederationPanel />
<MigrationSettings />
</div>
);
}