import { IStream } from "types"; import Link from "next/link" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCalendar } from "@fortawesome/free-solid-svg-icons"; export function StreamButton({ stream }: { stream: IStream }) { if (!stream) return <> return ( {new Date(stream.attributes.date).toLocaleDateString()} ) }