- Remove BMAD framework, IDE configs, dev screenshots, test files, internal docs, and backup files - Rename keep-notes/ to memento-note/ - Update all references from keep-notes to memento-note - Add Apache 2.0 license with Commons Clause (non-commercial restriction) - Add clean .gitignore and .env.docker.example
30 lines
927 B
TypeScript
30 lines
927 B
TypeScript
import { getUsers } from '@/app/actions/admin'
|
|
import { CreateUserDialog } from '../create-user-dialog'
|
|
import { UserList } from '../user-list'
|
|
import { Plus } from 'lucide-react'
|
|
import { Button } from '@/components/ui/button'
|
|
|
|
export default async function AdminUsersPage() {
|
|
const users = await getUsers()
|
|
|
|
return (
|
|
<div className="space-y-6">
|
|
<div className="flex justify-between items-center">
|
|
<div>
|
|
<h1 className="text-3xl font-bold text-gray-900 dark:text-white">
|
|
Users
|
|
</h1>
|
|
<p className="text-gray-600 dark:text-gray-400 mt-1">
|
|
Manage application users and permissions
|
|
</p>
|
|
</div>
|
|
<CreateUserDialog />
|
|
</div>
|
|
|
|
<div className="bg-white dark:bg-zinc-900 rounded-lg shadow overflow-hidden border border-gray-200 dark:border-gray-800">
|
|
<UserList initialUsers={users} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|