import React from "react"; import { connect } from "react-redux"; import CharacterString from "../CharacterString"; import { AppState } from "../../types"; import * as Selectors from "../../selectors"; interface StateProps { khz: string | null; } const Khz = (props: StateProps) => (
{props.khz || ""}
); function mapStateToProps(state: AppState): StateProps { return { khz: Selectors.getKhz(state) }; } export default connect(mapStateToProps)(Khz);