Spaces:
Running
Running
Download frontend/src/components/admin/UsersHeader.jsx from banu4prasad/Gateprep: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/banu4prasad/Gateprep/resolve/main/frontend/src/components/admin/UsersHeader.jsx
- Command line
-
hf download hf://spaces/banu4prasad/Gateprep/frontend/src/components/admin/UsersHeader.jsx
-
curl -L -o UsersHeader.jsx https://huggingface.co/spaces/banu4prasad/Gateprep/resolve/main/frontend/src/components/admin/UsersHeader.jsx
614 Bytes
| import { Button } from '@/components/ui/button' | |
| import RefreshCw from 'lucide-react/dist/esm/icons/refresh-cw' | |
| export default function UsersHeader({ totalUsers, pendingUsers, reload }) { | |
| return ( | |
| <div className="flex items-center justify-between"> | |
| <div> | |
| <h1 className="text-2xl font-bold text-foreground">Users</h1> | |
| <p className="text-muted-foreground mt-1"> | |
| {totalUsers} registered · {pendingUsers} pending approval | |
| </p> | |
| </div> | |
| <Button variant="ghost" size="sm" onClick={reload}> | |
| <RefreshCw size={15} /> Refresh | |
| </Button> | |
| </div> | |
| ) | |
| } | |