@@ -22,11 +22,12 @@ import { isTauri } from "@/utils/isTauri";
2222import { formatShortcutDisplay } from "@/utils/keyboard" ;
2323import { DragDropContext , Draggable , Droppable , OnDragEndResponder } from "@hello-pangea/dnd" ;
2424import { useLocalStorage } from "@mantine/hooks" ;
25- import { BsGear , BsHouse , BsSearch } from "react-icons/bs" ;
25+ import { BsDownload , BsGear , BsHouse , BsSearch } from "react-icons/bs" ;
2626import { SidebarConfig } from "../Settings" ;
2727import { SIDEBAR_CONSTANTS } from "./constants" ;
2828import Tool from "./Tool" ;
2929import { DropDownItem , Props , SidebarTool } from "./types" ;
30+ import { APP_CONFIG } from "@/constants/app" ;
3031
3132export const Sidebar = ( { collapsed, setCollapsed } : Props ) => {
3233 const location = useLocation ( ) ;
@@ -331,6 +332,47 @@ export const Sidebar = ({ collapsed, setCollapsed }: Props) => {
331332
332333 < Divider w = "90%" mx = "auto" mt = { 0 } />
333334 < Stack className = { classes . settingsSection } mt = { 4 } >
335+ { ! isTauri ( ) && (
336+ < Box
337+ className = { cx ( classes . navigationItem ) }
338+ onClick = { ( ) => window . open ( APP_CONFIG . RELEASES_URL , "_blank" ) }
339+ >
340+ < Box className = { classes . itemContent } w = "100%" >
341+ { collapsed ? (
342+ < BsGear size = { SIDEBAR_CONSTANTS . ICON_SIZE . LARGE } />
343+ ) : (
344+ < >
345+ < BsDownload
346+ size = { SIDEBAR_CONSTANTS . ICON_SIZE . MEDIUM }
347+ style = { { minWidth : SIDEBAR_CONSTANTS . ICON_SIZE . MEDIUM } }
348+ />
349+ < Box w = "80%" >
350+ < Text size = "xs" fw = "450" >
351+ Download App
352+ { showDescription && (
353+ < Text
354+ size = "11px"
355+ c = "dimmed"
356+ mt = { 2 }
357+ w = "100%"
358+ styles = { {
359+ root : {
360+ whiteSpace : "nowrap" ,
361+ overflow : "hidden" ,
362+ textOverflow : "ellipsis" ,
363+ } ,
364+ } }
365+ >
366+ Get the desktop app for the best experience
367+ </ Text >
368+ ) }
369+ </ Text >
370+ </ Box >
371+ </ >
372+ ) }
373+ </ Box >
374+ </ Box >
375+ ) }
334376 < Box
335377 className = { cx ( classes . navigationItem , {
336378 [ classes . selectedNavigationItem ] : location . pathname === "/settings" ,
0 commit comments