Counting Agents
so time to show real data on dashboard
first i installed tanstack cuz i am not going to fetch everywhere the same data, tanstack query will fetch, cache, store, refetch and handle all that, its a server state management lib.
so using tanstack i created the neccessary functions for it to query the server and created the dashboard card component which will display the number of agent.
i am also using shadcn skeleton to show the loading part.
here’s how the cards look
next: agent table
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.