import Span from "@moduletrace/twui/layout/Span";
import type { ExtensionProposalView } from "@/src/types";
import MessageDetailsHeading from "./message-details-heading";
import ProposalEnvRow from "./proposal-env-row";
type Props = {
view: ExtensionProposalView;
/**
* Every key it sends, once each.
*/
keys: string[];
/**
* The keys that aren't saved yet.
*/
missing: string[];
};
/**
* Where a proposed server or tool sends from the app, and each key it
* sends with whether it's saved.
*/
export default function ProposalReachSection({ view, keys, missing }: Props) {
return (
<>
Where it sends
{view.host || "Nothing from the app"}
{`Keys it sends (${keys.length})`}
{view.envs.length ? (
view.envs.map((env) => )
) : (
None.
)}
{missing.length ? (
{`Add missing keys in Settings, under Environment. Until then it's saved switched off.`}
) : null}
>
);
}