"use client"; import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/card"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Badge } from "@/components/ui/badge"; import { Users, Clock, User } from "lucide-react"; interface DashboardState { gitUser: string; gitAvatar?: string; gitLastLogin?: string; gitFollowerCt: number; gitFollowingCt: number; gitIsAdmin: boolean; gitEmail?: string; } export function GiteaProfileCard({ dashboardState }: { dashboardState: DashboardState }) { const convDate = (dateStr: string) => { const date = new Date(dateStr); return date.toLocaleString(); } return ( Profile An overview of your LibreCloud Git account

{dashboardState.gitUser} {dashboardState.gitIsAdmin && Admin}

{dashboardState.gitFollowerCt} followers {dashboardState.gitFollowingCt} following
Last login: {dashboardState.gitLastLogin === "Never" ? "Never" : (dashboardState.gitLastLogin && convDate(dashboardState.gitLastLogin)) || "N/A"}
) }