feat: add the view graph on tiktok
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user