The main server, and probably only repository in this org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
362 B

import React from "react";
import useGroups from "../Hooks/group";
import Group from "./Group";
import Loading from "./Loading";
function Groups() {
const groups = useGroups();
if (groups === null) {
return <Loading/>;
}
return (
<div>
{groups.map(group => <Group key={group.id} {...group} />)}
</div>
);
}
export default Groups;