import { Link } from "lucide-react";
import {
Card,
CardHeader,
CardTitle,
CardContent,
CardDescription,
} from "@/components/ui/card";
import { getAllUsersCount } from "@/lib/api";
export async function UsersCount() {
const usersCount = await getAllUsersCount().catch(() => null);
if (usersCount === null) {
return (
Users Count
Total number of registered users on Thoughts.
Could not load users count.
);
}
if (usersCount.count === 0) {
return (
Users Count
Total number of registered users on Thoughts.
No registered users yet. Be the first to{" "}
sign up
!
);
}
return (
Users Count
Total number of registered users on Thoughts.