'use server';
import { resolve } from '../../lib/server-container.js';
export async function updateProjectMemberRole(input) {
    try {
        const useCase = resolve('UpdateProjectMemberRoleUseCase');
        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 update role';
        return { error: message };
    }
}
