'use server';
import { resolve } from '../../lib/server-container.js';
export async function removeProjectMember(input) {
    try {
        const useCase = resolve('RemoveProjectMemberUseCase');
        const result = await useCase.execute(input);
        if (!result.ok)
            return { error: result.error };
        return {};
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to remove member';
        return { error: message };
    }
}
