import { v4 } from "uuid"; import Header from "../components/Header"; import type { Profile } from "../types/profile"; import type { Track } from "../types/track"; import dayjs from "dayjs"; export type TopTracksEmbedPageProps = { profile: Profile; tracks: Track[]; }; export function TopTracksEmbedPage(props: TopTracksEmbedPageProps) { const end = dayjs(); const start = end.subtract(7, "day"); const range = `${start.format("DD MMM YYYY")} — ${end.format("DD MMM YYYY")}`; return (