feat (TikTok): add a mockup of the graph of likes / views

This commit is contained in:
Pierre Ryssen
2026-03-12 11:10:16 +01:00
parent 0ce9c1be39
commit 61f426ef3c
5 changed files with 682 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import { useEffect, useState } from "react";
import { useRouter, useSearchParams } from "next/navigation";
import StatCard from "@/components/StatCard";
import StatsChart from "@/components/StatsCharts";
interface TikTokStats {
followers: number;
@@ -12,6 +13,7 @@ interface TikTokStats {
videoCount: number;
displayName: string;
avatarUrl: string;
plan: "free" | "pro" | "elite" | "team";
}
export default function TikTokPage() {
@@ -144,6 +146,9 @@ export default function TikTokPage() {
accent="gold"
/>
</div>
{/* Graph */}
<StatsChart plan={stats.plan ?? "free"} />
</>
)}
@@ -177,4 +182,4 @@ export default function TikTokPage() {
)}
</div>
);
}
}