2019-07-31 13:11:00 +09:00
|
|
|
import React from 'react'
|
|
|
|
import { FaGithub } from 'react-icons/fa'
|
|
|
|
import { Card } from '../Card'
|
|
|
|
import { DedicatedAvailability } from '../Availability'
|
|
|
|
import { capitalize } from '../../util/text'
|
|
|
|
|
|
|
|
export default function GithubCard({ name }) {
|
|
|
|
return (
|
|
|
|
<Card
|
2019-07-31 14:05:39 +09:00
|
|
|
title="GitHub Organization"
|
2019-07-31 13:11:00 +09:00
|
|
|
key={name}
|
|
|
|
nameList={[name]}
|
|
|
|
alternativeList={[
|
|
|
|
`${name.toLowerCase()}hq`,
|
|
|
|
`${name.toLowerCase()}-team`,
|
|
|
|
`${capitalize(name)}Team`,
|
|
|
|
`${name.toLowerCase()}-org`,
|
|
|
|
]}>
|
|
|
|
{(name) => (
|
|
|
|
<DedicatedAvailability
|
|
|
|
name={name}
|
2019-07-31 13:40:16 +09:00
|
|
|
service="github"
|
|
|
|
link={`https://github.com/${name}`}
|
2019-07-31 13:11:00 +09:00
|
|
|
prefix="github.com/"
|
|
|
|
icon={<FaGithub />}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</Card>
|
|
|
|
)
|
|
|
|
}
|