diff --git a/src/app/recruit/components/FAQItem.tsx b/src/app/recruit/components/FAQItem.tsx index 97fdfc0..ac4e0b0 100644 --- a/src/app/recruit/components/FAQItem.tsx +++ b/src/app/recruit/components/FAQItem.tsx @@ -1,4 +1,6 @@ -import React from 'react' +'use client' + +import React, { useState } from 'react' import { FAQObj } from '../../../utils/recruitMockData' import ArrowLink from '../../../../public/icon/button/FAQ-arrow-button.svg' @@ -7,25 +9,35 @@ interface Items { } const FAQItem = ({ items }: Items) => { + const [open, setOpen] = useState(Array(items.length).fill(false)) return (