2019-07-31 00:18:58 +09:00
|
|
|
import React from 'react'
|
2019-07-31 01:12:51 +09:00
|
|
|
import { Card, CardTitle, ExistenceAvailability } from './Card'
|
2019-07-31 00:18:58 +09:00
|
|
|
import { IoIosBeer } from 'react-icons/io'
|
|
|
|
|
|
|
|
export default function HomebrewCard({ name }) {
|
|
|
|
return (
|
|
|
|
<Card key={name}>
|
|
|
|
<CardTitle>Homebrew</CardTitle>
|
2019-07-31 01:12:51 +09:00
|
|
|
<ExistenceAvailability
|
|
|
|
name={name}
|
|
|
|
target={`https://formulae.brew.sh/api/formula/${name}.json`}
|
|
|
|
url={`https://formulae.brew.sh/formula/${name}`}
|
|
|
|
icon={<IoIosBeer />}
|
|
|
|
/>
|
2019-07-31 02:40:54 +09:00
|
|
|
<ExistenceAvailability
|
|
|
|
name={name}
|
|
|
|
target={`https://formulae.brew.sh/api/cask/${name}.json`}
|
|
|
|
url={`https://formulae.brew.sh/cask/${name}`}
|
|
|
|
suffix=" (Cask)"
|
|
|
|
icon={<IoIosBeer />}
|
|
|
|
/>
|
2019-07-31 00:18:58 +09:00
|
|
|
</Card>
|
|
|
|
)
|
|
|
|
}
|