import { atom } from 'jotai';

export type CreateRoomModalState = {
  spaceId?: string;
  /** When set, the created room will be added as a sub-room to this room */
  parentSubRoomId?: string;
};

export const createRoomModalAtom = atom<CreateRoomModalState | undefined>(undefined);
