mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 07:26:36 +08:00
c293a255d0
Store the selected tab of the admin settings page in the URL query string under the tab parameter. Defend against invalid values by validating it against the list of known tabs.
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import {Suspense} from "react"
|
|
import {Loader2} from "lucide-react"
|
|
import {AdminSettingsPageClient} from "./page-client"
|
|
|
|
export default function AdminSettingsPage() {
|
|
return (
|
|
<Suspense
|
|
fallback={
|
|
<div className="flex items-center justify-center min-h-[400px]">
|
|
<Loader2 className="size-6 animate-spin text-primary" />
|
|
</div>
|
|
}
|
|
>
|
|
<AdminSettingsPageClient />
|
|
</Suspense>
|
|
)
|
|
} |