import { useId, type ReactNode } from "react"; import { RotateCw } from "lucide-react"; import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover"; import { Button } from "../ui/button"; import { ADDRESS_SUFFIX, addressStatus, type AddressCheck } from "../../utils/practiceAddress"; import "./PracticeAddress.css"; type PracticeAddressFieldProps = { value: string; onChange: (value: string) => void; check: AddressCheck | undefined; suggested: boolean; onRetry: () => void; disabled?: boolean; // What the deck draws between the About control and the address (the practice name). children?: ReactNode; }; // admin-v2 "Choose your practice web address". The About panel is a labelled control rather than a // hover; the permanent-address note stays outside it so nobody has to open it to be warned. const PracticeAddressField = ({ value, onChange, check, suggested, onRetry, disabled, children }: PracticeAddressFieldProps) => { const id = useId().replace(/:/g, ""); const status = addressStatus(value, check, suggested); const problem = status?.tone === "problem"; return (
Your included Akashic portal. Use it if you want to.
Use letters a–z only. Choose the name you want patients and staff to use.