{/* Left panel — posting list */}
Postings
} type="button">
New
{postings.map((p) => {
const active = p.job.id === selectedId;
return (
);
})}
{/* Right panel — detail */}
{selected ? (
) : (
Select a posting to view details
)}
);
}
function PostingDetail({ posting }: { posting: PostingRow }) {
const { job, applicants } = posting;
const applicantList = deriveApplicantList(job);
const seniorityOptions: Seniority[] = ['entry', 'mid', 'senior', 'staff', 'principal'];
const inputClass =
'h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 focus:border-primary-500 focus:ring-2 focus:ring-primary-500/30 focus:outline-none dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100';
return (