diff --git a/frontend/src/Components/UserListAdmin.tsx b/frontend/src/Components/UserListAdmin.tsx new file mode 100644 index 0000000..42fb094 --- /dev/null +++ b/frontend/src/Components/UserListAdmin.tsx @@ -0,0 +1,35 @@ +import { Link } from "react-router-dom"; +import { User } from "../Types/Users"; + +/** + * The props for the UserProps component + */ +interface UserProps { + users: User[]; +} + +/** + * A list of users for admin manage users page, that links admin to the right user page + * thanks to the state property + * @param props - The users to display + * @returns {JSX.Element} The user list + * @example + * const users = [{ id: 1, userName: "Random name" }]; + * return ; + */ + +export function UserListAdmin(props: UserProps): JSX.Element { + return ( +
+ +
+ ); +}