'use server';

import { SystemInfoService } from '@/services/core/system-info';

export async function getSystemInfo() {
  try {
    const systemInfo = await SystemInfoService.getSystemInfo();
    return { success: true, data: systemInfo };
  } catch (error) {
    console.error('Error getting system info:', error);
    return {
      success: false,
      error:
        error instanceof Error ? error.message : 'Failed to get system info',
    };
  }
}
