refactor(admin): split rbac page.tsx into colocated components

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-04-14 22:50:55 +02:00
parent 82a5a388b8
commit d5287f4bdd
15 changed files with 918 additions and 801 deletions

View File

@@ -0,0 +1,24 @@
'use client'
import React, { useState } from 'react'
export function UserRoleLookup({ onLoad }: { onLoad: (userId: string) => void }) {
const [userId, setUserId] = useState('00000000-0000-0000-0000-000000000001')
return (
<div className="flex gap-2">
<input
type="text"
value={userId}
onChange={e => setUserId(e.target.value)}
placeholder="User-ID eingeben..."
className="border border-gray-300 rounded-lg px-3 py-2 text-sm flex-1 font-mono"
/>
<button
onClick={() => onLoad(userId)}
className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-sm"
>
Laden
</button>
</div>
)
}