1
0
mirror of https://github.com/uetchy/namae.git synced 2025-07-04 07:10:03 +09:00
namae/web/src/components/cards/JsOrgCard.js

24 lines
612 B
JavaScript
Raw Normal View History

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 { FaJsSquare } from 'react-icons/fa'
2019-07-31 18:54:28 +09:00
import { Card } from '../Cards'
2019-08-05 22:59:39 +09:00
import { DedicatedAvailability } from '../Cards'
2019-07-31 13:11:00 +09:00
export default function JsOrgCard({ name }) {
2019-08-03 13:36:29 +09:00
const { t } = useTranslation()
2019-07-31 13:11:00 +09:00
const lowerCase = name.toLowerCase()
return (
2019-08-03 16:44:48 +09:00
<Card title={t('providers.jsorg')} nameList={[lowerCase]}>
2019-07-31 13:11:00 +09:00
{(name) => (
<DedicatedAvailability
name={`${name}.js.org`}
2019-07-31 13:40:16 +09:00
service="dns"
link={`https://${name}.js.org`}
2019-07-31 13:11:00 +09:00
icon={<FaJsSquare />}
/>
)}
</Card>
)
}