diff --git a/apps/embed/src/components/Header/Header.tsx b/apps/embed/src/components/Header/Header.tsx index f5a2ca60..ee97c5fb 100644 --- a/apps/embed/src/components/Header/Header.tsx +++ b/apps/embed/src/components/Header/Header.tsx @@ -3,6 +3,7 @@ import type { Profile } from "../../types/profile"; export type HeaderProps = { profile: Profile; + withoutRange?: boolean; }; function Header(props: HeaderProps) { @@ -30,8 +31,12 @@ function Header(props: HeaderProps) { >
@{props.profile.handle}
- | - {range} + {!props.withoutRange && ( + <> + | + {range} + + )} +

Recent Listens

+ +
+ + + {props.scrobbles.map((scrobble, index) => ( + + + + + ))} + +
+ + + {dayjs( + scrobble.createdAt.endsWith("Z") + ? scrobble.createdAt + : `${scrobble.createdAt}Z`, + ).fromNow()} +
+
); }