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