import React from "react"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import classnames from "classnames"; import { SET_FOCUSED_WINDOW, CLOSE_GEN_WINDOW } from "../../actionTypes"; import { scrollVolume } from "../../actionCreators"; const Text = ({ children }) => { const letters = children.split(""); return letters.map((letter, i) => (
)); }; // Named export for testing export const GenWindow = ({ selected, children, close, title, setFocus, windowId, scrollVolume: handleWheel }) => (