mirror of
https://github.com/uetchy/namae.git
synced 2025-07-01 22:10:04 +09:00
31 lines
829 B
JavaScript
31 lines
829 B
JavaScript
import React from 'react'
|
|
import { FaGithub } from 'react-icons/fa'
|
|
import { Card, CardTitle, DedicatedAvailability, Alternatives } from './Card'
|
|
|
|
export default function GithubCard({ name }) {
|
|
return (
|
|
<Card key={name}>
|
|
<CardTitle>GitHub</CardTitle>
|
|
<DedicatedAvailability
|
|
name={name}
|
|
provider="github"
|
|
url={`https://github.com/${name}`}
|
|
prefix="github.com/"
|
|
icon={<FaGithub />}
|
|
/>
|
|
<Alternatives
|
|
nameList={[`${name.toLowerCase()}hq`, `${name.toLowerCase()}-team`]}>
|
|
{(name) => (
|
|
<DedicatedAvailability
|
|
name={name}
|
|
provider="github"
|
|
url={`https://github.com/${name}`}
|
|
prefix="github.com/"
|
|
icon={<FaGithub />}
|
|
/>
|
|
)}
|
|
</Alternatives>
|
|
</Card>
|
|
)
|
|
}
|