const data = `export const animals = [
{key: "cat", label: "Cat"},
{key: "dog", label: "Dog"},
{key: "elephant", label: "Elephant"},
{key: "lion", label: "Lion"},
{key: "tiger", label: "Tiger"},
{key: "giraffe", label: "Giraffe"},
{key: "dolphin", label: "Dolphin"},
{key: "penguin", label: "Penguin"},
{key: "zebra", label: "Zebra"},
{key: "shark", label: "Shark"},
{key: "whale", label: "Whale"},
{key: "otter", label: "Otter"},
{key: "crocodile", label: "Crocodile"}
];`;
const PetIcon = `export const PetIcon = (props) => (
);`;
const App = `import {Select, SelectItem} from "@nextui-org/react";
import {PetIcon} from "./PetIcon";
import {animals} from "./data";
export default function App() {
return (
}
>
{animals.map((animal) => (
{animal.label}
))}
);
}
`;
const react = {
"/App.jsx": App,
"/PetIcon.jsx": PetIcon,
"/data.js": data,
};
export default {
...react,
};