github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/public/src/components/navbar-buttons/LogoutButton.tsx (about)

     1  import React from "react"
     2  import { useActions } from "../../overmind"
     3  
     4  const LogoutButton = () => {
     5      const actions = useActions()
     6      return (
     7          <li>
     8              <a href="/logout" className="sidebar-items-link dropdown-item bg-dark" style={{ color: "#d4d4d4" }} onClick={() => actions.logout()}>Log out</a>
     9          </li>
    10      )
    11  }
    12  
    13  export default LogoutButton