import Link from 'next/link' import styles from './item.module.css' import { timeSince } from '../lib/time' import UpVote from './upvote' import { useEffect, useRef, useState } from 'react' import Countdown from './countdown' import { NOFOLLOW_LIMIT } from '../lib/constants' import Pin from '../svgs/pushpin-fill.svg' import reactStringReplace from 'react-string-replace' import { formatSats } from '../lib/format' import * as Yup from 'yup' import Briefcase from '../svgs/briefcase-4-fill.svg' function SearchTitle ({ title }) { return reactStringReplace(title, /:high\[([^\]]+)\]/g, (match, i) => { return {match} }) } export function ItemJob ({ item, rank, children }) { const isEmail = Yup.string().email().isValidSync(item.url) return ( <> {rank ? (