1import Papa from 'papaparse'; 2 3export function parseCsv(content: string): Record<string, string>[] { 4 const result = Papa.parse(content, { header: true, skipEmptyLines: true }); 5 return result.data as Record<string, string>[]; 6}