MCPcopy Index your code
hub / github.com/vercel/hyper / getWindowHeaderConfig

Method getWindowHeaderConfig

lib/components/header.tsx:60–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 };
59
60 getWindowHeaderConfig() {
61 const {showHamburgerMenu, showWindowControls} = this.props;
62
63 const defaults = {
64 hambMenu: !this.props.isMac, // show by default on windows and linux
65 winCtrls: !this.props.isMac // show by default on Windows and Linux
66 };
67
68 // don't allow the user to change defaults on macOS
69 if (this.props.isMac) {
70 return defaults;
71 }
72
73 return {
74 hambMenu: showHamburgerMenu === '' ? defaults.hambMenu : showHamburgerMenu,
75 winCtrls: showWindowControls === '' ? defaults.winCtrls : showWindowControls
76 };
77 }
78
79 render() {
80 const {isMac} = this.props;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected