feat: add music widget

This commit is contained in:
verbiricha
2023-09-19 08:37:10 +02:00
parent a309737d8c
commit f5b67a2293
7 changed files with 82 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import { eventToLink, hexToBech32 } from "utils";
import { ZapAlertItem } from "./widgets/zaps";
import { TopZappersWidget } from "./widgets/top-zappers";
import { Views } from "./widgets/views";
import { Music } from "./widgets/music";
import groupBy from "lodash/groupBy";
interface ZapAlertConfigurationProps {
@ -195,6 +196,13 @@ export function WidgetsPage() {
<Copy text={`${baseUrl}/alert/${npub}/views`} />
{currentLink && <Views link={currentLink} />}
</div>
<div className="flex f-col g8">
<h3>
<FormattedMessage defaultMessage="Music" />
</h3>
<Copy text={`${baseUrl}/alert/${npub}/music`} />
{currentLink && <Music link={currentLink} />}
</div>
</div>
);
}