import {
  type CustomEntrySelection,
  CustomEntryModal,
} from '@/features/custom-entry-modal';

interface CustomEntryWidgetProps {
  isOpen: boolean;
  selectedRoomId: string;
  onSelectRoom: (roomId: string) => void;
  onClose: () => void;
  onEnter: (selection: CustomEntrySelection) => void;
}

export const CustomEntryWidget = ({
  isOpen,
  selectedRoomId,
  onSelectRoom,
  onClose,
  onEnter,
}: CustomEntryWidgetProps) => {
  return (
    <CustomEntryModal
      isOpen={isOpen}
      selectedRoomId={selectedRoomId}
      onSelectRoom={onSelectRoom}
      onClose={onClose}
      onEnter={onEnter}
    />
  );
};
