Spaces:
Sleeping
Sleeping
Download app/admin/posts/page.tsx from underrate/webdev-service: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/spaces/underrate/webdev-service/resolve/main/app/admin/posts/page.tsx
- Command line
-
hf download hf://spaces/underrate/webdev-service/app/admin/posts/page.tsx
-
curl -L -o page.tsx https://huggingface.co/spaces/underrate/webdev-service/resolve/main/app/admin/posts/page.tsx
643 Bytes
| "use client" | |
| import { RoleGuard } from "@/components/auth/RoleGuard" | |
| import { Role } from "@/types/auth" | |
| export default function PostsPage() { | |
| return ( | |
| <RoleGuard allowedRoles={[Role.SUPER_ADMIN, Role.EDITOR]}> | |
| <div className="p-8"> | |
| <h1 className="text-3xl font-bold mb-4">Content Management</h1> | |
| <div className="border p-4 rounded bg-background"> | |
| <p>Super Admins and Editors can manage content here.</p> | |
| {/* Blog/Portfolio management UI would go here */} | |
| </div> | |
| </div> | |
| </RoleGuard> | |
| ) | |
| } | |