@@ -10,6 +10,7 @@ import WorthAlert from "./Worth/WorthAlert";
1010import Skeleton from "./Skeletons/Skeleton" ;
1111import HomeSkeleton from "./Skeletons/HomeSkeleton" ;
1212import PromotedCard from "./PromotedCard" ;
13+ import { options } from "../utils/index"
1314
1415export default function Home ( ) {
1516 const [ showStats , setShowStats ] = useState ( false ) ;
@@ -84,28 +85,7 @@ export default function Home() {
8485
8586 const [ selectedValue , setSelectedValue ] = useState ( 'Only Value' ) ;
8687
87- const options = [
88- {
89- heading : "Could you drop a star on the GitHub repo? It helps a lot!👋" ,
90- imgSrc : "/promoted1.png" ,
91- } ,
92- {
93- heading : "Drop a star on our GitHub repo to show your support!🌟" ,
94- imgSrc : "/promoted1.png" ,
95- } ,
96- {
97- heading : "Can you drop a star on the GitHub repo? It helps a lot!👋 " ,
98- imgSrc : "/promoted2.webp" ,
99- } ,
100- {
101- heading : "Could you drop a star on the GitHub repo? It helps a lot!👋 " ,
102- imgSrc : "/promoted3.png" ,
103- } ,
104- {
105- heading : "Can you please share this project with your friends and family?✨ " ,
106- imgSrc : "/promoted3.png" ,
107- }
108- ] ;
88+
10989 const [ random , setRandom ] = useState ( Math . floor ( Math . random ( ) * options . length ) ) ;
11090
11191
0 commit comments