File was renamed from zy-asrs-flow/src/components/RightContent/index.tsx |
| | |
| | | import React from 'react'; |
| | | import { MoonOutlined, BulbOutlined } from '@ant-design/icons'; |
| | | |
| | | export type SiderTheme = 'light' | 'dark'; |
| | | |
| | | export const SelectLang = () => { |
| | | return ( |
| | | <UmiSelectLang |
| | |
| | | ); |
| | | }; |
| | | |
| | | export const Brightness = () => { |
| | | export const Brightness = ({ darkMode, setDarkMode }) => { |
| | | const handleClick = () => { |
| | | setDarkMode(!darkMode); |
| | | }; |
| | | return ( |
| | | <> |
| | | <div |
| | | style={{ |
| | | display: 'flex', |
| | | height: 26, |
| | | }} |
| | | onClick={() => { |
| | | window.open('https://pro.ant.design/docs/getting-started'); |
| | | }} |
| | | > |
| | | {/* <BulbOutlined /> */} |
| | | <MoonOutlined /> |
| | | </div> |
| | | </> |
| | | ) |
| | | } |
| | | <div |
| | | style={{ |
| | | display: 'flex', |
| | | height: 26, |
| | | }} |
| | | onClick={handleClick} |
| | | > |
| | | {darkMode ? <BulbOutlined /> : <MoonOutlined />} |
| | | </div> |
| | | ); |
| | | }; |