Create a user interface that allows administrators to set roles for users. The roles may include Administrator, Support, Sales, and other similar roles. The interface should provide a seamless way for administrators to assign these roles to users.
Requirements:
User List:
Display a list of all users.
Each user entry should include the user's name, email, and current role.
Role Assignment:
Provide a dropdown menu or selection box for each user entry to change the user's role.
Dropdown options should include Administrator, Support, Sales, and other predefined roles.
Role Display:
Show the current role of each user next to their name.
Save/Update Button:
Include a button to save or update the role changes for users.
Display a confirmation message upon successful update.
Filter/Search Functionality:
Allow administrators to filter or search users by name, email, or current role.
Access Control:
Ensure only users with administrator privileges can access this interface.
Responsive Des | A shadcn/ui and v0 generation - v0