feat: add the view graph on tiktok

This commit is contained in:
Pierre Ryssen
2026-03-27 00:58:38 +01:00
parent 51a376400c
commit 9bdbe8e153
6 changed files with 138 additions and 14 deletions

View File

@@ -13,13 +13,14 @@ import {
import { TrendingUp, TrendingDown, Minus, Lock } from "lucide-react";
type Period = "7d" | "30d" | "90d" | "all";
type Metric = "followers" | "likes" | "videoCount";
type Metric = "followers" | "likes" | "videoCount" | "views";
interface Snapshot {
createdAt: string;
followers: number;
likes: number;
videoCount: number;
views: number;
}
interface StatsChartProps {
@@ -39,6 +40,7 @@ const METRICS: { value: Metric; label: string; color: string; gradientId: string
{ value: "followers", label: "Followers", color: "#c084fc", gradientId: "gradFollowers" },
{ value: "likes", label: "Likes", color: "#f472b6", gradientId: "gradLikes" },
{ value: "videoCount", label: "Vidéos", color: "#60a5fa", gradientId: "gradVideos" },
{ value: "views", label: "Vues", color: "#22c55e", gradientId: "gradViews" },
];
function canAccess(plan: string, required: string) {