import { ArrowTrendingUpIcon, BuildingOfficeIcon, MapPinIcon, } from '@heroicons/react/20/solid'; import { JobType } from '@prisma/client'; import { JobTypeLabel } from '~/components/offers/constants'; import type { JobTitleType } from '~/components/shared/JobTitles'; import { getLabelForJobTitleType } from '~/components/shared/JobTitles'; import { convertMoneyToString } from '~/utils/offers/currency'; import { formatDate } from '~/utils/offers/time'; import type { UserProfileOffer } from '~/types/offers'; type Props = Readonly<{ offer: UserProfileOffer; }>; export default function DashboardProfileCard({ offer: { company, income, jobType, level, location, monthYearReceived, title, }, }: Props) { return (
{jobType === JobType.FULLTIME ? `${convertMoneyToString(income)} / year` : `${convertMoneyToString(income)} / month`}
{formatDate(monthYearReceived)}