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