@@ -5,11 +5,14 @@ import { useTheme } from 'next-themes';
55import { twMerge } from 'tailwind-merge' ;
66
77import { useSearch } from '~/context/SearchContext' ;
8- import GitHubLogo from '~/public/github.svg' ;
8+ import GitHubLogo from '~/public/icons/github-icon.svg' ;
9+ import PlusIcon from '~/public/icons/plus-icon.svg' ;
10+ import SearchIcon from '~/public/icons/search-icon.svg' ;
11+ import ThemeDarkIcon from '~/public/icons/theme-dark-icon.svg' ;
12+ import ThemeLightIcon from '~/public/icons/theme-light-icon.svg' ;
913import Logo from '~/public/logo.svg' ;
10- import SearchIcon from '~/public/search-icon.svg' ;
11- import ThemeDarkIcon from '~/public/theme-dark.svg' ;
12- import ThemeLightIcon from '~/public/theme-light.svg' ;
14+
15+ import Tooltip from './Tooltip' ;
1316
1417export default function Header ( ) {
1518 const { resolvedTheme, setTheme } = useTheme ( ) ;
@@ -41,22 +44,37 @@ export default function Header() {
4144 />
4245 </ div >
4346 < div className = "flex flex-row gap-2 ml-auto" >
44- < div
45- role = "button"
46- tabIndex = { 0 }
47- className = "cursor-pointer p-1.5 rounded-full hover:bg-hover"
48- onClick = { ( ) => {
49- resolvedTheme === 'dark' ? setTheme ( 'light' ) : setTheme ( 'dark' ) ;
50- } } >
51- < ThemeLightIcon className = "text-secondary size-6 hidden dark:block" />
52- < ThemeDarkIcon className = "text-secondary size-6 dark:hidden" />
53- </ div >
54- < Link
55- href = "https://github.com/react-native-community/nightly-tests"
56- target = "_blank"
57- className = "p-1.5 rounded-full hover:bg-hover" >
58- < GitHubLogo className = "text-secondary size-6" />
59- </ Link >
47+ < Tooltip
48+ content = "Add package to the program"
49+ side = "bottom"
50+ sideOffset = { 4 } >
51+ < Link
52+ href = "https://github.com/react-native-community/discussions-and-proposals/discussions/931#discussion-8827727"
53+ target = "_blank"
54+ className = "p-1.5 rounded-full hover:bg-hover" >
55+ < PlusIcon className = "text-secondary size-6" />
56+ </ Link >
57+ </ Tooltip >
58+ < Tooltip content = "Toggle theme" side = "bottom" sideOffset = { 4 } >
59+ < div
60+ role = "button"
61+ tabIndex = { 0 }
62+ className = "cursor-pointer p-1.5 rounded-full hover:bg-hover"
63+ onClick = { ( ) => {
64+ resolvedTheme === 'dark' ? setTheme ( 'light' ) : setTheme ( 'dark' ) ;
65+ } } >
66+ < ThemeLightIcon className = "text-secondary size-6 hidden dark:block" />
67+ < ThemeDarkIcon className = "text-secondary size-6 dark:hidden" />
68+ </ div >
69+ </ Tooltip >
70+ < Tooltip content = "GitHub" side = "bottom" sideOffset = { 4 } >
71+ < Link
72+ href = "https://github.com/react-native-community/nightly-tests"
73+ target = "_blank"
74+ className = "p-1.5 rounded-full hover:bg-hover" >
75+ < GitHubLogo className = "text-secondary size-6" />
76+ </ Link >
77+ </ Tooltip >
6078 </ div >
6179 </ div >
6280 </ header >
0 commit comments