19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import { GroupsSection } from "./groups-section";
|
|
import { GroupUsersSection } from "./group-users-section";
|
|
|
|
function GroupsPage() {
|
|
const [selectedGroupId, setSelectedGroupId] = useState("");
|
|
|
|
return (
|
|
<div className="flex">
|
|
<GroupsSection handleSelectedGroup={setSelectedGroupId} />
|
|
<GroupUsersSection groupId={selectedGroupId} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export { GroupsPage };
|