mirror of
https://github.com/uetchy/namae.git
synced 2025-07-03 23:00:04 +09:00
24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { FaJsSquare } from 'react-icons/fa'
|
|
import { Card } from '../Cards'
|
|
import { DedicatedAvailability } from '../Cards'
|
|
|
|
export default function JsOrgCard({ name }) {
|
|
const { t } = useTranslation()
|
|
const lowerCase = name.toLowerCase()
|
|
|
|
return (
|
|
<Card title={t('providers.jsorg')} nameList={[lowerCase]}>
|
|
{(name) => (
|
|
<DedicatedAvailability
|
|
name={`${name}.js.org`}
|
|
service="dns"
|
|
link={`https://${name}.js.org`}
|
|
icon={<FaJsSquare />}
|
|
/>
|
|
)}
|
|
</Card>
|
|
)
|
|
}
|