import { FC, ReactNode, createContext } from 'react';
import {
  Profile,
  Emojis,
  Setting,
  DeleteRoom,
  CreateRoom,
  MessageMoreAction,
  Notifications,
  ProfileAction,
  DirectRoomAction,
} from 'components/dialogs';

export const DialogContext = createContext({});

export const DialogProvider: FC<DialogProps> = ({ children }) => {
  return (
    <DialogContext.Provider value={{}}>
      <Profile />
      <Emojis />
      <Setting />
      <DeleteRoom />
      <CreateRoom />
      <MessageMoreAction />
      <Notifications />
      <ProfileAction />
      <DirectRoomAction />
      {children}
    </DialogContext.Provider>
  );
};

interface DialogProps {
  children?: ReactNode;
}
