import Menu from "./Menu";
import Tab from "./Tab";

function ListMenu({ value, open, setOpen, handleChange, listTab }) {
  return (
    <>
      <div className="hidden md:flex">
        <Tab value={value} listTab={listTab} handleChange={handleChange} />
      </div>
      <div className="flex md:hidden">
        <Menu
          open={open}
          value={value}
          listTab={listTab}
          setOpen={setOpen}
          handleChange={handleChange}
        />
      </div>
    </>
  );
}

export default ListMenu;
