import React from 'react'; import { useRecoilValue } from 'recoil'; import type { Dispatch, SetStateAction } from 'react'; import { useLocalize, useNewConvo } from '~/hooks'; import store from '~/store'; export default function MobileNav({ setNavVisible, }: { setNavVisible: Dispatch>; }) { const localize = useLocalize(); const { newConversation } = useNewConvo(0); const conversation = useRecoilValue(store.conversationByIndex(0)); const { title = 'New Chat' } = conversation || {}; return (

{title || localize('com_ui_new_chat')}

); }