import { useState, useEffect } from "react";
import Accordian, { AccordianProps } from "./Accordian";

const AccordianContainer = (props: AccordianProps) => {
    const [accordianProps, setAccordianProps] = useState<AccordianProps>({} as AccordianProps);

    useEffect(() => {
        const accordianProps = { ...props };
        setAccordianProps(accordianProps);
    }, [props]);

    return <Accordian {...accordianProps} />;
};
export default AccordianContainer;
