import { BuildingOffice2Icon, ChatBubbleBottomCenterTextIcon, CurrencyDollarIcon, ScaleIcon, } from '@heroicons/react/24/outline'; import { HorizontalDivider } from '@tih/ui'; import type { OfferDisplayData } from '~/components/offers/types'; type Props = Readonly<{ offer: OfferDisplayData; }>; export default function OfferCard({ offer: { base, bonus, companyName, duration, jobTitle, jobLevel, location, receivedMonth, totalCompensation, stocks, monthlySalary, negotiationStrategy, otherComment, }, }: Props) { function UpperSection() { return (
{location ? `${companyName}, ${location}` : companyName}

{jobLevel ? `${jobTitle}, ${jobLevel}` : jobTitle}

{!duration && receivedMonth && (

{receivedMonth}

)} {duration && (

{`${duration} months`}

)}
); } function BottomSection() { return (

{totalCompensation ? `TC: ${totalCompensation}` : `Monthly Salary: ${monthlySalary}`}

{totalCompensation && (

Base / year: {base} ⋅ Stocks / year: {stocks} ⋅ Bonus / year:{' '} {bonus}

)}
{negotiationStrategy && (
"{negotiationStrategy}"
)} {otherComment && (
"{otherComment}"
)}
); } return (
); }