import CallTabPanel from "@/components/layouts/Dashboard/CallWidget/CallWidgetDialog/CallTabs/CallTabPanel";
import useAnswers from "@/lib/callWidget/hooks/useAnswers";
import CallTabsList from "src/components/layouts/Dashboard/CallWidget/CallWidgetDialog/CallTabs/CallTabsList";

const CallTabs = () => {
    const {answersList} = useAnswers()

    return (
        <>
            <CallTabsList/>
            {answersList.map((answer) => (
                <CallTabPanel key={answer.id} tab={answer}/>
            ))}
        </>
    )
}
export default CallTabs