()
| 5 | import { Sidebar, GithubLogo, NotePencil } from '@phosphor-icons/react'; |
| 6 | |
| 7 | export function Header() { |
| 8 | const [isSidebarOpen, setIsSidebarOpen] = useState(false); |
| 9 | |
| 10 | const toggleSidebar = () => { |
| 11 | setIsSidebarOpen(!isSidebarOpen); |
| 12 | }; |
| 13 | |
| 14 | return ( |
| 15 | <> |
| 16 | <header className="sticky top-0 z-[500] flex items-center justify-between w-full px-4 border-b h-14 shrink-0 dark:bg-slate-800 bg-white backdrop-blur-xl"> |
| 17 | <div className="flex items-center justify-end space-x-2"> |
| 18 | |
| 19 | {/* <Sidebar size={24} /> */} |
| 20 | <a href="./"> |
| 21 | <NotePencil size={24} /> |
| 22 | </a> |
| 23 | </div> |
| 24 | <span className="inline-flex items-center home-links whitespace-nowrap"> |
| 25 | <a href="https://developersdigest.tech" rel="noopener" target="_blank"> |
| 26 | <span className="block sm:inline text-lg sm:text-xl lg:text-2xl font-semibold dark:text-white text-black">answer <span className="linear-wipe">engine</span></span> |
| 27 | </a> |
| 28 | </span> |
| 29 | <a |
| 30 | target="_blank" |
| 31 | href="https://git.new/answr" |
| 32 | rel="noopener noreferrer" |
| 33 | |
| 34 | > |
| 35 | <GithubLogo size={24} /> |
| 36 | </a> |
| 37 | </header> |
| 38 | {/* <Sidebar isOpen={isSidebarOpen} onClose={toggleSidebar} /> */} |
| 39 | </> |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | // const Sidebar = ({ isOpen, onClose }) => { |
| 44 | // const [settings, setSettings] = useState({ |
nothing calls this directly
no outgoing calls
no test coverage detected