- {([{
- id: 'nextjs',
- name: 'Next.js',
- reverseIfDark: true,
- imgSrc: '/next-logo.svg',
- }, {
- id: 'tanstackStart',
- name: 'TanStack Start',
- reverseIfDark: false,
- imgSrc: '/tanstack-start-logo.png',
- }, {
- id: 'react',
- name: 'React',
- reverseIfDark: false,
- imgSrc: '/react-logo.svg',
- }, {
- id: 'javascript',
- name: 'JavaScript',
- reverseIfDark: false,
- imgSrc: '/javascript-logo.svg',
- }, {
- id: 'python',
- name: 'Python',
- reverseIfDark: false,
- imgSrc: '/python-logo.svg',
- }] as const).map(({ name, imgSrc: src, reverseIfDark, id }) => (
-
setSelectedFramework(id)}
- >
-
- {name}
-
- ))}
+ {setupMode === "recommended" ? (
+
+
+ {[
+ {
+ step: 1,
+ title: "Copy Setup Prompt",
+ content:
+
+ {selectedInstallPrompt}
+
+ }
+ title="Prompt for your AI agent"
+ icon="code"
+ maxHeight={480}
+ />
+
,
+ },
+ {
+ step: 2,
+ title: "Create Keys",
+ content: <>
+
+ Add this server-only key to your project's .env.local file.
+
+
+ >,
+ },
+ {
+ step: 3,
+ title: "Done",
+ content: ,
+ },
+ ].map((item) => (
+ -
+
+
+ {item.step}
+
+
{item.title}
-
,
- },
- ...(selectedFramework === 'nextjs' ? nextJsSteps : []),
- ...(selectedFramework === 'tanstackStart' ? tanstackStartSteps : []),
- ...(selectedFramework === 'react' ? reactSteps : []),
- ...(selectedFramework === 'javascript' ? javascriptSteps : []),
- ...(selectedFramework === 'python' ? pythonSteps : []),
- ].map((item, index) => (
-
-
-
- {item.step}
-
-
{item.title}
-
-
- {item.content}
-
-
- ))}
-
-