* refactor: replacing mobx with jotai Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: Louis <louis@jan.ai>
20 lines
496 B
TypeScript
20 lines
496 B
TypeScript
"use client";
|
|
|
|
import ConfirmDeleteConversationModal from "@/_components/ConfirmDeleteConversationModal";
|
|
import ConfirmSignOutModal from "@/_components/ConfirmSignOutModal";
|
|
import MobileMenuPane from "@/_components/MobileMenuPane";
|
|
import { ReactNode } from "react";
|
|
|
|
type Props = {
|
|
children: ReactNode;
|
|
};
|
|
|
|
export const ModalWrapper: React.FC<Props> = ({ children }) => (
|
|
<>
|
|
<MobileMenuPane />
|
|
<ConfirmDeleteConversationModal />
|
|
<ConfirmSignOutModal />
|
|
{children}
|
|
</>
|
|
);
|