import { Button, Card } from 'reactstrap'; import { FC, PropsWithChildren, ReactNode } from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faArrowLeft } from '@fortawesome/free-solid-svg-icons'; import { ShortUrlVisitsCount } from '../short-urls/helpers/ShortUrlVisitsCount'; import { ShortUrl } from '../short-urls/data'; import { 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}
}
);