import { Link } from "@remix-run/react"; import type { ConvertDatesToStrings } from "@remix-run/router/utils"; import type { StationWithTags } from "~/models/station.server"; export type StationsGalleryProps = { stations: ConvertDatesToStrings>[] }; export function StationsGallery({ stations }: StationsGalleryProps) { return (
{stations.map((station) => { return (
Radio Station

{station.name}

{station.tags.map((t, id) => { return {t.tag.name}; })}

{station.description}

); })}
); }