/**
 * R1: an empty association card on the contact and company record pages, as the 28 Oct design
 * draws it (record-tabs.js:310 for contacts, companies and deals, :328 for Events): the design's
 * illustration (record-tabs.js:45, `I.empty`) above a fixed sentence. Styles: `.crm-empty-association`
 * and `__art` in details.css. Previews and other pages keep their own empty texts.
 */
export type DesignEmptyKind = 'company' | 'deal' | 'contact' | 'event';

export const DESIGN_EMPTY_TEXT: Record<DesignEmptyKind, string> = {
  company: 'See the businesses or organizations associated with this record.',
  deal: 'Track the revenue opportunities associated with this record.',
  contact: 'See the people associated with this record.',
  event: 'See the Events associated with this record.',
};

export function DesignAssocEmpty({ kind }: { kind: DesignEmptyKind }) {
  return (
    <div className="crm-empty-association">
      <svg className="crm-empty-association__art" viewBox="0 0 120 90" aria-hidden>
        <ellipse cx="60" cy="78" rx="34" ry="8" fill="#eef1f5" />
        <circle cx="54" cy="34" r="18" fill="#fff" stroke="#b9c0cc" strokeWidth="3" />
        <path d="m67 47 14 14" stroke="#b9c0cc" strokeWidth="5" strokeLinecap="round" />
        <path d="M40 70 54 52l14 18z" fill="#e4e7ec" />
      </svg>
      <p>{DESIGN_EMPTY_TEXT[kind]}</p>
    </div>
  );
}
