2019-07-31 13:11:00 +09:00
|
|
|
import React from 'react'
|
2019-08-03 13:36:29 +09:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2019-07-31 13:11:00 +09:00
|
|
|
import { FaMapSigns } from 'react-icons/fa'
|
2019-08-06 00:45:18 +09:00
|
|
|
|
|
|
|
import { Card, Repeater, DedicatedAvailability } from '../Cards'
|
2019-07-31 13:11:00 +09:00
|
|
|
|
2019-08-06 02:07:05 +09:00
|
|
|
export default function DomainCard({ query }) {
|
2019-08-03 13:36:29 +09:00
|
|
|
const { t } = useTranslation()
|
2019-08-06 02:07:05 +09:00
|
|
|
const lowerCase = query.toLowerCase()
|
2019-07-31 13:11:00 +09:00
|
|
|
|
2019-08-06 02:07:05 +09:00
|
|
|
const names = [`${lowerCase}.com`, `${lowerCase}.app`]
|
2019-08-06 00:45:18 +09:00
|
|
|
const moreNames = [
|
2019-08-06 02:07:05 +09:00
|
|
|
`${lowerCase}app.com`,
|
|
|
|
`get${lowerCase}.com`,
|
2019-08-06 00:45:18 +09:00
|
|
|
`${lowerCase}.dev`,
|
|
|
|
`${lowerCase}.io`,
|
|
|
|
`${lowerCase}.tools`,
|
|
|
|
]
|
|
|
|
|
2019-07-31 13:11:00 +09:00
|
|
|
return (
|
2019-08-06 00:45:18 +09:00
|
|
|
<Card title={t('providers.domains')}>
|
|
|
|
<Repeater items={names} moreItems={moreNames}>
|
|
|
|
{(name) => (
|
|
|
|
<DedicatedAvailability
|
|
|
|
name={name}
|
2019-08-07 22:25:51 +09:00
|
|
|
message="Go to Domainr.com"
|
2019-08-06 00:45:18 +09:00
|
|
|
service="domain"
|
|
|
|
link={`https://domainr.com/?q=${name}`}
|
|
|
|
icon={<FaMapSigns />}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</Repeater>
|
2019-07-31 13:11:00 +09:00
|
|
|
</Card>
|
|
|
|
)
|
|
|
|
}
|