diff --git a/src/app/admin/config/page.tsx b/src/app/admin/config/page.tsx index 463c4a1..53d9489 100644 --- a/src/app/admin/config/page.tsx +++ b/src/app/admin/config/page.tsx @@ -4,11 +4,85 @@ import { useCallback, useEffect, useState } from "react"; import type { NomadroRemoteConfig } from "~/lib/remote-config"; import styles from "../admin.module.css"; +function SocialJsonEditor({ + label, + value, + type, + onValue, + onValidity, +}: { + label: string; + value: unknown; + type: "pages" | "sources"; + onValue: (value: Record) => void; + onValidity: (valid: boolean) => void; +}) { + const [text, setText] = useState(() => JSON.stringify(value || {}, null, 2)); + const [error, setError] = useState(""); + return ( +