Logout

πŸ‘¨β€πŸ’Ό We've got a logout button on the user profile page when the user's logged in and looking at their own profile (like if Kody goes to ). But right now it doesn't do anything. Let's make it post to the /logout route and make the /logout action clear the user's userId from the session.
When the user wants to log out, we'll want to destroy their session. We can do this using the destroySession API from Remix:
const setCookieHeader = await sessionStorage.destroySession(cookieSession)
πŸ¦‰ (psst, don't forget the "files" menu below).