'client only'; import { Cog8ToothIcon, PlusCircleIcon } from "@heroicons/react/24/outline"; import { FC } from "react"; import { BillBadge } from "./BillBadge"; import { Bill, Location } from "../lib/db-types"; import { formatYearMonth } from "../lib/format"; export interface LocationCardProps { location: Location } export const LocationCard:FC = ({location: { _id, name, yearMonth, bills }}) =>

{formatYearMonth(yearMonth)} {name}

{ bills.map(bill => ) }
;