function generateIndexHtml(context) {
  const { spec } = context;
  const componentName = spec?.metadata?.component || spec?.component?.name || "App";
  const description = spec?.metadata?.description || spec?.component?.description || "Generated by SpecVerse";
  return `<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="${description}" />
    <title>${componentName}</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>
`;
}
export {
  generateIndexHtml as default
};
