'use server';
import { resolve } from '../../lib/server-container.js';
export async function resumeFeature(featureId) {
    if (!featureId.trim()) {
        return { resumed: false, error: 'Feature id is required' };
    }
    try {
        const useCase = resolve('ResumeFeatureUseCase');
        await useCase.execute(featureId);
        return { resumed: true };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to resume feature';
        return { resumed: false, error: message };
    }
}
