"use client"; import { useState } from "react"; import { Box, Button, Card, CardContent, FormControl, FormControlLabel, FormLabel, Grid, Radio, RadioGroup, Stack, TextField, Typography } from "@mui/material"; export default function OAuthSetupClient({ startSetup }: { startSetup: (formData: FormData) => void }) { const [providerType, setProviderType] = useState<"authentik" | "generic">("authentik"); return ( Configure OAuth2/OIDC Provide the OAuth configuration for your identity provider to finish setting up Caddy Proxy Manager. The first user who signs in becomes the administrator. Provider Type setProviderType(e.target.value as "authentik" | "generic")} > } label="Authentik (OIDC)" /> } label="Generic OAuth2" /> {providerType === "authentik" ? ( <> ) : ( <> )} ); }