import { useMemo, useState } from "react" import { Trash2, X } from "lucide-react" import { SecretsEditor } from "@/components/SecretsEditor" import { ConfirmModal } from "@/components/ConfirmModal" const INPUT = "bg-black/30 border border-[var(--border)] rounded px-3 py-1.5 text-sm focus:outline-none focus:border-[var(--primary)]" export function Field({ label, children, hint, }: { label: string children: React.ReactNode hint?: string }) { return (
{hint}
}An exact hostname — an apex (example.com) or a name in another zone. The Cloudflare token(s) need DNS:Edit on that zone.
Use ${"{port}"},{" "}
${"{data_dir}"},{" "}
${"{name}"},{" "}
${"{public_url}"} for castle's computed values,
and ${"{secret:NAME}"} for secrets.
{trimmedKey} already exists.
)}{secretName} — embedded in{" "} {envKey} (read-only)
))}