import { StarIcon } from '@heroicons/react/24/solid'; import { motion } from 'framer-motion'; import Image from 'next/image'; import { useState } from 'react'; import lemur from '~/assets/index/lemur.jpg'; import monkey from '~/assets/index/monkey.jpg'; import owl from '~/assets/index/owl.jpg'; const StaredButton = ({ stared }) => { const [isStared, setIsStared] = useState(stared); return isStared ? ( ) : ( ); }; function IndexList() { const list = [ { title: 'Lemur', description: '16-19 years • Primates • 110+ species ', src: lemur, stared: false, }, { title: 'Monkey', description: '20 years • Primates • 260+ species', src: monkey, stared: true, }, { title: 'Owl', description: '9-10 years • Strigiformes • 200+ species', src: owl, stared: false, }, ]; return ( ); } export default IndexList;