Move to the newer stable same-major release for current Next.js fixes and improvements. Update the pinned dependency and lockfile, align Bun and build configuration, and adjust compatibility changes in settings, health, error, donate, and rubgram routes.
32 lines
1.0 KiB
TypeScript
Executable File
32 lines
1.0 KiB
TypeScript
Executable File
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
import { SettingsAccountSection } from "./account";
|
|
import { getSettongs } from "./api";
|
|
import { SettingsServicesSection } from "./services";
|
|
|
|
export default async function () {
|
|
const { enka, donatePromptpay, donateTruemoney } = await getSettongs();
|
|
|
|
return (
|
|
<div className="grid h-full w-full gap-8 p-2 pl-0">
|
|
<Tabs defaultValue="external">
|
|
<TabsList className="w-full">
|
|
<TabsTrigger value="external">บริการนอก</TabsTrigger>
|
|
<TabsTrigger value="account">บัญชี</TabsTrigger>
|
|
</TabsList>
|
|
<TabsContent value="external">
|
|
<SettingsServicesSection
|
|
enka={enka}
|
|
donPp={donatePromptpay}
|
|
donTmn={donateTruemoney}
|
|
/>
|
|
</TabsContent>
|
|
<TabsContent value="account">
|
|
<SettingsAccountSection />
|
|
</TabsContent>
|
|
</Tabs>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export const dynamic = "force-dynamic";
|