import { UserCircleIcon } from '@heroicons/react/24/outline'; import { HorizontalDivider } from '~/../../../packages/ui/dist'; import { formatDate } from '~/utils/offers/time'; import { JobType } from '../types'; import type { AnalysisOffer } from '~/types/offers'; type OfferProfileCardProps = Readonly<{ offerProfile: AnalysisOffer; }>; export default function OfferProfileCard({ offerProfile: { company, income, profileName, totalYoe, level, monthYearReceived, jobType, location, title, previousCompanies, }, }: OfferProfileCardProps) { return (
{profileName}
Previous company: {previousCompanies[0]}
YOE: {totalYoe} year(s)
{title}
Company: {company.name}, {location}
Level: {level}
{formatDate(monthYearReceived)}
{jobType === JobType.FullTime ? `$${income} / year` : `$${income} / month`}