mirror of
https://github.com/uetchy/namae.git
synced 2025-03-18 21:10:32 +09:00
25 lines
630 B
JavaScript
25 lines
630 B
JavaScript
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { FaAws } from 'react-icons/fa'
|
|
import { Card } from '../Cards'
|
|
import { DedicatedAvailability } from '../Cards'
|
|
|
|
export default function S3Card({ name }) {
|
|
const { t } = useTranslation()
|
|
const lowerCase = name.toLowerCase()
|
|
|
|
return (
|
|
<Card title={t('providers.s3')} nameList={[lowerCase]}>
|
|
{(name) => (
|
|
<DedicatedAvailability
|
|
name={name}
|
|
service="s3"
|
|
link={`https://${name}.s3.amazonaws.com`}
|
|
suffix=".s3.amazonaws.com"
|
|
icon={<FaAws />}
|
|
/>
|
|
)}
|
|
</Card>
|
|
)
|
|
}
|