1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-18 13:00:33 +09:00
namae/web/src/components/cards/GithubCard.js

31 lines
768 B
JavaScript
Raw Normal View History

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>
)
}