2021-05-12 02:10:36 +00:00
|
|
|
import React from "react"
|
|
|
|
import Loading from "../base/Loading"
|
|
|
|
import BoxFullScrollable from "../base/BoxFullScrollable"
|
|
|
|
import SummaryUser from "./SummaryUser"
|
2021-05-17 22:22:11 +00:00
|
|
|
import Localization from "../../Localization"
|
2021-05-12 02:10:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
export default function BoxUserList({ users, destroyUser, running, ...props }) {
|
|
|
|
let contents
|
|
|
|
if(users === null) {
|
|
|
|
contents = <Loading/>
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
contents = users.map(user =>
|
|
|
|
<SummaryUser key={user["email"]} destroyUser={destroyUser} running={running} user={user}/>)
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2021-05-17 22:22:11 +00:00
|
|
|
<BoxFullScrollable header={Localization.userList} {...props}>
|
2021-05-12 02:10:36 +00:00
|
|
|
{contents}
|
|
|
|
</BoxFullScrollable>
|
|
|
|
)
|
|
|
|
}
|