import { Button, Card } from 'reactstrap'; import React, { FC, 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'; interface VisitsHeaderProps { visits: Visit[]; goBack: () => void; title: ReactNode; shortUrl?: ShortUrl; } const VisitsHeader: FC = ({ visits, goBack, shortUrl, children, title }) => (

{title} Visits:{' '}

{title}

{children &&
{children}
}
); export default VisitsHeader;