@ctlyst.id/internal-ui 1.0.4-canary.7 → 1.0.4-canary.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ export declare type HeaderProps = BoxProps & {
5
5
  data?: HeaderDataProps;
6
6
  onLogout?: () => void;
7
7
  onOpenModalRelease?: () => void;
8
+ hideSwitchMode?: boolean;
8
9
  };
9
10
  declare const Header: React.FC<HeaderProps>;
10
11
  export default Header;
@@ -1934,6 +1934,7 @@ const Header = ({
1934
1934
  data,
1935
1935
  onLogout,
1936
1936
  onOpenModalRelease,
1937
+ hideSwitchMode,
1937
1938
  ...props
1938
1939
  }) => /*#__PURE__*/React.createElement(react.Box, Object.assign({
1939
1940
  minH: 14,
@@ -1954,14 +1955,15 @@ const Header = ({
1954
1955
  onOpenModalRelease: onOpenModalRelease
1955
1956
  })), /*#__PURE__*/React.createElement(react.Flex, {
1956
1957
  alignItems: "center"
1957
- }, /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
1958
+ }, !hideSwitchMode && /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
1958
1959
  data: data,
1959
1960
  onLogout: onLogout
1960
1961
  }))));
1961
1962
  Header.defaultProps = {
1962
1963
  data: undefined,
1963
1964
  onLogout: undefined,
1964
- onOpenModalRelease: undefined
1965
+ onOpenModalRelease: undefined,
1966
+ hideSwitchMode: false
1965
1967
  };
1966
1968
 
1967
1969
  const ModalBody = /*#__PURE__*/React__default.forwardRef(({