import React from 'react'; import Card from 'react-bootstrap/Card'; import { useAutoFocus, useFocusedElement } from '../FocusedElement'; export type Props = { heading?: string, position: string, timerange: string, company: string, description: string }; export default function JobCard(props: Props) { const focusRef = useAutoFocus('position ' + [props.position, props.company].join(', ')) return ( {props.heading && ( {props.heading} )} {props.position} {props.company}, {props.timerange} {props.description} ); }