import { faArrowLeft } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import type { FC, PropsWithChildren, ReactNode } from 'react'; import { Button, Card } from 'reactstrap'; import type { ShortUrl } from '../short-urls/data'; import { ShortUrlVisitsCount } from '../short-urls/helpers/ShortUrlVisitsCount'; import type { Visit } from './types'; type VisitsHeaderProps = PropsWithChildren<{ visits: Visit[]; goBack: () => void; title: ReactNode; shortUrl?: ShortUrl; }>; export const VisitsHeader: FC = ({ visits, goBack, shortUrl, children, title }) => (

{title} Visits:{' '}

{title}

{children &&
{children}
}
);