import {FC} from 'react';
import ChildMenu from '@pages/menu-id';
import {PageModal} from '@components';

type Props = {
  visible: boolean
  id: string
  onClose: () => void
};

const ChildMenuModal: FC<Props> = function({visible, id, onClose}) {
  return (
    <PageModal
      onClose={onClose}
      visible={visible}
    >
      <ChildMenu id={id} />
    </PageModal>
  );
};

export default ChildMenuModal;
