import { Gridicon } from '@automattic/components'; import { Button } from '@wordpress/components'; import { useTranslate } from 'i18n-calypso'; import surveyImage from 'calypso/assets/images/illustrations/developer-survey.svg'; type DeveloperSurveyNoticeProps = { onClose: ( remindTimeInSeconds: number, buttonName: string ) => void; onSurveyClick: () => void; localeSlug: string; }; const ONE_DAY_IN_SECONDS = 24 * 60 * 60; const ONE_YEAR_IN_SECONDS = 365 * ONE_DAY_IN_SECONDS; export const DeveloperSurveyNotice = ( { onClose, onSurveyClick, localeSlug, }: DeveloperSurveyNoticeProps ) => { const translate = useTranslate(); const href = localeSlug === 'es' ? 'https://wordpressdotcom.survey.fm/developer-survey-es' : 'https://wordpressdotcom.survey.fm/developer-survey'; return (
{
{ translate( 'Hey developer!' ) }
{ translate( "How do you use WordPress.com? Spare a moment? We'd love to hear what you think in a quick survey." ) }
); };