import React, { useState } from 'react'; import { GRADIENT, MONO } from '../signup-mirror/theme'; import { ModalShell } from './modal-shell'; export function PartnerCodeModal({ onApply, onClose, onNoCode, applying, error, }: { onApply: (code: string) => void; onClose: () => void; onNoCode: () => void; applying: boolean; error?: string; }): JSX.Element { const [code, setCode] = useState(''); const apply = (): void => { const trimmed = code.trim(); if (!trimmed || applying) return; onApply(trimmed); }; return (

Setting this up for a client?

Enter your partner code. It adds 10,000 extra credits to this account's trial, and links the account to your partner dashboard.

setCode(event.target.value)} onKeyDown={event => { if (event.key === 'Enter') { event.preventDefault(); apply(); } }} className="w-full p-[12px_13px] rounded-[10px] bg-white border border-[#e1e3e5] text-[#202223] text-[14px] outline-none transition focus:border-[#C8175D] focus:shadow-[0_0_0_3px_rgba(200,23,93,0.15)]" /> {error && ( {error} )}

No code? "I don't have a code yet" takes you to the partner program: a free account for your own work, plus commissions on the clients you bring. Open to agencies and independent experts alike.

); }