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

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

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