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 (
{jobLevel ? `${jobTitle}, ${jobLevel}` : jobTitle}
{receivedMonth}
{`${duration} months`}
{totalCompensation ? `TC: ${totalCompensation}` : `Monthly Salary: ${monthlySalary}`}
Base / year: {base} ⋅ Stocks / year: {stocks} ⋅ Bonus / year:{' '} {bonus}