export function pickSectionData(content, section) {
  if (!content || section === 'dashboard' || section === 'settings') return null;

  if (section === 'hero') {
    return {
      hero: structuredClone(content.hero ?? {}),
      metrics: structuredClone(content.metrics ?? []),
    };
  }

  if (section === 'about') {
    return {
      about: structuredClone(content.about ?? {}),
      partners: structuredClone(content.partners ?? { logos: [] }),
    };
  }

  const data = content[section];
  return data ? structuredClone(data) : null;
}
