// The public site's words about who can use Context. VITE_CONTEXT_OPEN=true once it is open to
// clinicians across Nigeria; unset or anything else means the closed pilot, so no build claims more.
export const contextOpen = (value: unknown = import.meta.env?.VITE_CONTEXT_OPEN): boolean => value === "true";
export const PILOT_LINE = "MARMAR Context is in a small pilot with clinicians in Lagos. Request access and we'll tell you when it opens to more clinicians.";
/** The home page's lead, the request page's opening line, and what the receipt says happens next. */
export function siteWords(open = contextOpen()) {
return {
lead: open
? "MARMAR Context is open to clinicians in Nigeria. Request access with your licence, or try it now with a fictional patient."
: `${PILOT_LINE} Meanwhile, try it with a fictional patient.`,
requestIntro: open ? null : PILOT_LINE,
receiptNext: (body: "MDCN" | "PCN") =>
open
? `MARMAR checks your licence with the ${body} register, usually within 2 working days, and emails you when you are verified.`
: `MARMAR Context is in a small pilot with clinicians in Lagos. We keep your request, check your licence with the ${body} register, and email you when it opens to you.`,
};
}