import { Link } from "react-router-dom"; import type { StaffPermissionSection } from "../../utils/staffAccess.ts"; /** * Said to a patient or helper who reaches a practice staff page, in place of waiting for a staff workspace that * their account will never have. Practice billing points at their own bills; every other staff page points home. */ const StaffOnlySection = ({ section }: { section?: StaffPermissionSection }) => { const billing = section === "billing"; return (
{billing ? "Your own bills and payments are in Bills & payments." : "It isn\u2019t part of your patient account."}
{billing ? "Go to Bills & payments" : "Go to Home"}