1
0
mirror of https://github.com/uetchy/namae.git synced 2025-07-02 06:20:02 +09:00
namae/src/components/HomebrewCard.js

25 lines
717 B
JavaScript
Raw Normal View History

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