import * as React from 'react'; import {useIntl} from 'gatsby-plugin-intl'; import {defineMessages} from 'react-intl'; import {Grid} from '@trussworks/react-uswds'; import J40Map from '../J40Map'; import * as styles from './mapWrapper.module.scss'; import * as constants from '../../data/constants'; import AlertWrapper from '../AlertWrapper'; interface IMapWrapperProps { location: Location } const MapWrapper = ({location}: IMapWrapperProps) => { const intl = useIntl(); const messages = defineMessages({ downloadLinkText: { id: 'mapwrapper.download.link', defaultMessage: 'Download the draft list ', description: 'download link for datasets', }, downloadLinkText1: { id: 'mapwrapper.download1.link', defaultMessage: `of communities of focus and datasets used. Last updated: ${constants.DOWNLOAD_LAST_UPDATED}`, description: 'download link for datasets', }, downloadContents: { id: 'mapwrapper.download.contents', defaultMessage: `ZIP file will contain one .xlsx, one .csv, and one .pdf (${constants.DOWNLOAD_FILE_SIZE}).`, description: 'download link contents', }, }); return ( <>
{intl.formatMessage(messages.downloadLinkText)} {intl.formatMessage(messages.downloadLinkText1)}
{intl.formatMessage(messages.downloadContents)}
); }; export default MapWrapper;