import { Link } from 'react-router'; import type { Brewery } from '../breweries.server'; interface BreweryCardProps { brewery: Brewery; } const BreweryCard = ({ brewery }: BreweryCardProps) => (

{brewery.breweryName}

{brewery.description}

{brewery.location && (

{brewery.location.addressLine1} {brewery.location.addressLine2 ? `, ${brewery.location.addressLine2}` : ''}

)}
); export default BreweryCard;