feat(households): hane seçici, ayarlar, admin hane yönetimi ve hane-yok sayfası
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
|
||||
import { removeMemberAction, setMemberRoleAction } from "../actions";
|
||||
import type { HouseholdRole } from "../types";
|
||||
import { MembersList, type MemberRow } from "./members-list";
|
||||
|
||||
/** /ayarlar: aktif hanenin üyeleri (owner action'larına bağlı). */
|
||||
export function SettingsMembers(props: {
|
||||
members: MemberRow[];
|
||||
householdName: string;
|
||||
currentUserId: string;
|
||||
canManage: boolean;
|
||||
}) {
|
||||
return (
|
||||
<MembersList
|
||||
{...props}
|
||||
onSetRole={(userId, role: HouseholdRole) => setMemberRoleAction(userId, role)}
|
||||
onRemove={(userId) => removeMemberAction(userId)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user