- Updated RootLayout to include locale support and integrated ThemeProvider and LocaleProvider for better internationalization. - Replaced static home page content with a redirect based on user session status, enhancing user experience by directing to the appropriate dashboard or login page. - Switched font from Geist to Inter for improved typography consistency.
14 lines
434 B
TypeScript
14 lines
434 B
TypeScript
import { AccessRulesForm } from '@/components/settings/access-rules-form';
|
|
import { listAccessRules } from '@/lib/access-rules';
|
|
|
|
interface AccessPageProps {
|
|
params: Promise<{ guildId: string }>;
|
|
}
|
|
|
|
export default async function GuildAccessPage({ params }: AccessPageProps) {
|
|
const { guildId } = await params;
|
|
const rules = await listAccessRules(guildId);
|
|
|
|
return <AccessRulesForm guildId={guildId} initialRules={rules} />;
|
|
}
|