-
-
-const GroupMembersCount = connect(
- (state: RootState, props: { uuid: string }) => {
-
- const permissions = filterResources((resource: LinkResource) =>
- resource.kind === ResourceKind.LINK &&
- resource.linkClass === LinkClass.PERMISSION &&
- resource.headUuid === props.uuid
- )(state.resources);
-
- return {
- children: permissions.length,
- };
-
- }
-)((props: {children: number}) => (<Typography children={props.children} />));