import React from 'react' ; import { useTranslation } from 'react-i18next' ; import { normalize } from '../../../util/text' ; import { NetlifyIcon } from '../../Icons' ; import { Card , Repeater , DedicatedAvailability } from '../core' ; const NetlifyCard = ( { query } ) => { const { t } = useTranslation ( ) ; const normalizedQuery = normalize ( query , { allowUnderscore : false , } ) ; const lowerCase = normalizedQuery . toLowerCase ( ) ; const names = [ lowerCase ] ; return ( < Card title = { t ( 'providers.netlify' ) } > < Repeater items = { names } > { ( name ) => ( < DedicatedAvailability name = { `${ name }.netlify.com` } service = "existence" message = { `Go to ${ name }.netlify.com` } link = { `https://${ name }.netlify.com` } icon = { < NetlifyIcon / > } />)} < /Repeater> < /Card>); } ; export default NetlifyCard ;