@@ -117,117 +117,3 @@ const MainText = styled.h3`
117117  color: ${ ( {  theme } )  =>  theme . colors . grey90 }  ; 
118118  ${ ( {  theme } )  =>  theme . fonts . subHead4 }  ; 
119119` ; 
120- 
121- // import styled from "styled-components"; 
122- // import { useState } from "react"; 
123- // import PopularQuestionPrizeIcon from "./PopularQuestionPrizeIcon"; 
124- // import ArrowRight from "@/shared/assets/icons/arrow-right.svg"; 
125- // import ArrowDown from "@/shared/assets/icons/arrow-down.svg"; 
126- // import { useTarotQuestionRecommends } from "../hooks/useTarotQuestionRecommends"; 
127- 
128- // const PopularQuestions = () => { 
129- //   const [moreQuestionsToggle, setMoreQuestionsToggle] = useState(false); 
130- 
131- //   const { data } = useTarotQuestionRecommends(); 
132- 
133- //   return ( 
134- //     <PopularQuestionsWrapper> 
135- //       <TextWrapper> 
136- //         <SubText>이런 질문은 어때요?</SubText> 
137- //         <MainText> 많이 물어보는 질문</MainText> 
138- //       </TextWrapper> 
139- 
140- //       <QuestionWrapper> 
141- //         {data?.questions.map((item, idx) => 
142- //           idx < 5 ? ( 
143- //             <QuestionBtn key={idx}> 
144- //               <PopularQuestionPrizeIcon prize={idx + 1} /> 
145- //               <BtnText>{item.question}</BtnText> 
146- //               <ArrowRight /> 
147- //             </QuestionBtn> 
148- //           ) : null 
149- //         )} 
150- 
151- //         {!moreQuestionsToggle && ( 
152- //           <AddQuestionBtn onClick={() => setMoreQuestionsToggle(true)}> 
153- //             질문 더 보기 
154- //             <ArrowDown /> 
155- //           </AddQuestionBtn> 
156- //         )} 
157- //         {moreQuestionsToggle && 
158- //           data?.questions.slice(5, 10).map((item, idx) => ( 
159- //             <QuestionBtn key={idx}> 
160- //               <PopularQuestionPrizeIcon prize={idx + 6} /> 
161- //               <BtnText>{item.question}</BtnText> 
162- //               <ArrowRight /> 
163- //             </QuestionBtn> 
164- //           ))} 
165- //       </QuestionWrapper> 
166- //     </PopularQuestionsWrapper> 
167- //   ); 
168- // }; 
169- 
170- // export default PopularQuestions; 
171- // const AddQuestionBtn = styled.button` 
172- //   display: flex; 
173- //   justify-content: center; 
174- //   align-items: center; 
175- //   gap: 6px; 
176- 
177- //   ${({ theme }) => theme.fonts.subHead1 }; 
178- //   color: ${({ theme }) => theme.colors.grey70 }; 
179- // `; 
180- 
181- // const TextWrapper = styled.div` 
182- //   display: flex; 
183- //   flex-direction: column; 
184- // `; 
185- 
186- // const PopularQuestionsWrapper = styled.div` 
187- //   display: flex; 
188- //   flex-direction: column; 
189- //   justify-content: center; 
190- //   align-items: center; 
191- 
192- //   gap: 24px; 
193- //   width: 100%; 
194- //   padding: 0 20px 32px; 
195- // `; 
196- 
197- // const QuestionWrapper = styled.div` 
198- //   display: flex; 
199- //   flex-direction: column; 
200- //   gap: 12px; 
201- 
202- //   width: 100%; 
203- // `; 
204- 
205- // const QuestionBtn = styled.button` 
206- //   display: flex; 
207- 
208- //   gap: 12px; 
209- //   align-items: center; 
210- //   justify-content: space-between; 
211- //   padding: 16px; 
212- //   width: 100%; 
213- //   border-radius: 12px; 
214- //   background-color: ${({ theme }) => theme.colors.grey00}; 
215- // `; 
216- 
217- // const BtnText = styled.p` 
218- //   color: ${({ theme }) => theme.colors.grey70 }; 
219- //   overflow: hidden; 
220- //   text-overflow: ellipsis; 
221- //   white-space: nowrap; 
222- //   ${({ theme }) => theme.fonts.subHead2 }; 
223- // `; 
224- 
225- // const SubText = styled.h3` 
226- //   color: ${({ theme }) => theme.colors.grey60 }; 
227- //   ${({ theme }) => theme.fonts.body2 }; 
228- // `; 
229- 
230- // const MainText = styled.h3` 
231- //   color: ${({ theme }) => theme.colors.grey90 }; 
232- //   ${({ theme }) => theme.fonts.subHead4 }; 
233- // `; 
0 commit comments