'use server';
import { resolve } from '../../lib/server-container.js';
export async function unarchiveFeature(featureId) {
    if (!featureId?.trim()) {
        return { error: 'id is required' };
    }
    try {
        const unarchiveFeatureUseCase = resolve('UnarchiveFeatureUseCase');
        const feature = await unarchiveFeatureUseCase.execute(featureId);
        return { feature };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to unarchive feature';
        return { error: message };
    }
}
