import * as React from "react"; import * as cx from "classnames"; import { BaseVariablesTabProps } from "./view.pc"; import { Dispatch } from "redux"; import { PCVariable } from "paperclip"; import { FontFamily } from "../../../../../state"; export type Props = { show?: boolean; dispatch: Dispatch; globalFileUri: string; globalVariables: PCVariable[]; fontFamilies: FontFamily[]; }; export default (Base: React.ComponentClass) => class VariablesTabController extends React.PureComponent { render() { const { dispatch, show, globalFileUri, globalVariables, fontFamilies, ...rest } = this.props; if (show === false) { return null; } return ( ); } };