feat: cache stats sources

This commit is contained in:
Samuel 2024-12-18 19:03:44 +01:00
parent ec1ea5cfe8
commit cad305aa66
14 changed files with 98 additions and 92 deletions

View file

@ -5,8 +5,8 @@ import { weekdayNames } from "~/lib/messages";
import type { MessageStats, Recipients } from "~/types";
export const DmMessagesPerWeekday: Component<{
weekdayStats: MessageStats["weekday"];
recipients: Recipients;
weekdayStats: MessageStats["weekday"] | undefined;
recipients: Recipients | undefined;
}> = (props) => {
const weekdayChartData: Accessor<ChartData<"radar"> | undefined> = () => {
const currentMessagesPerWeekday = props.weekdayStats;