"use client"; import type { GroupSettingsViewModelState } from "@/features/groups/components/use-group-settings-view-model"; type GroupSettingsGeneralCardProps = { vm: GroupSettingsViewModelState; }; export default function GroupSettingsGeneralCard({ vm }: GroupSettingsGeneralCardProps) { if (!vm.group) return null; return (
General Settings
Group name
{vm.group.name}
{vm.isAdmin ? ( ) : null}
{!vm.isAdmin ? (
Only admins can rename the group.
) : null}
{vm.isAdmin ? ( <>
Allow members to manage tags
) : null}
Group Tags ({vm.tags.length})
{vm.showAllTags ? ( ) : null} {vm.canManageTags ? ( ) : null}
{vm.visibleTags.map(tag => ( #{tag} ))} {!vm.showAllTags && vm.hasMoreTags ? ( ) : null} {!vm.tags.length ?
No tags yet.
: null}
); }