diff --git a/web/navigation-sidebar/navigation-sidebar-home-button.css b/web/navigation-sidebar/navigation-sidebar-home-button.css new file mode 100644 --- /dev/null +++ b/web/navigation-sidebar/navigation-sidebar-home-button.css @@ -0,0 +1,13 @@ +.container { + padding-top: 24px; + border-bottom: 1px solid var(--separator-background-primary-default); +} + +.buttonContainer { + color: var(--button-label-primary-default); + margin-bottom: 16px; +} + +.buttonContainer:hover { + cursor: pointer; +} diff --git a/web/navigation-sidebar/navigation-sidebar-home-button.react.js b/web/navigation-sidebar/navigation-sidebar-home-button.react.js new file mode 100644 --- /dev/null +++ b/web/navigation-sidebar/navigation-sidebar-home-button.react.js @@ -0,0 +1,28 @@ +// @flow + +import * as React from 'react'; + +import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; + +import css from './navigation-sidebar-home-button.css'; +import { useNavigationSidebarTooltip } from '../utils/tooltip-action-utils.js'; + +function NavigationSidebarHomeButton(): React.Node { + const { onMouseEnter, onMouseLeave } = useNavigationSidebarTooltip({ + tooltipLabel: 'Home', + }); + + return ( +
+
+ +
+
+ ); +} + +export default NavigationSidebarHomeButton;