first commit
Some checks failed
Build / run (push) Has been cancelled

This commit is contained in:
maher
2025-10-29 11:42:25 +01:00
commit 703f50a09d
4595 changed files with 385164 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import {LineChart} from '@common/charts/line-chart';
import {Trans} from '@common/i18n/trans';
import {FormattedNumber} from '@common/i18n/formatted-number';
import React from 'react';
import {InsightsAsyncChart} from '@app/admin/reports/insights/insights-async-chart';
export function InsightsPlaysChart() {
return (
<InsightsAsyncChart metric="plays">
{({data}) => (
<LineChart
className="flex-auto"
title={<Trans message="Plays" />}
hideLegend
description={
<Trans
message=":count total plays"
values={{
count: (
<FormattedNumber value={data?.report.plays.total || 0} />
),
}}
/>
}
/>
)}
</InsightsAsyncChart>
);
}