import { MapIcon } from '@heroicons/react/24/outline'
import { SVG } from 'utopia-ui'
import type { Route } from '#components/AppShell/SideBar'
export const routes = [
{
path: '/',
icon: ,
name: 'Map',
} /**
{
path: '/people', // url
icon: , // icon component
name: 'People', // name that appear in Sidebar
}, */,
/*
{
path: '', //no url needed as this has submenu
icon: , // icon component
name: 'Pages', // name that appear in Sidebar
submenu : [
{
path: '/login',
icon: ,
name: 'Kanban',
},
{
path: '/register', //url
icon: , // icon component
name: 'Gitlab', // name that appear in Sidebar
},
{
path: '/forgot-password',
icon: ,
name: 'Wiki',
},
]
}
*/
]
export const getBottomRoutes = (currentUrl: string) => {
const url = new URL(currentUrl)
const isEmbedded = url.searchParams.get('embedded') === 'true'
const bottomRoutes: Route[] = [
// Other routes can be added here
]
if (!isEmbedded) {
bottomRoutes.push(
{
path: 'https://github.com/utopia-os/utopia-ui', // url
icon: ,
name: 'GitHub', // name that appear in Sidebar
blank: true,
},
{
path: 'https://opencollective.com/utopia-project', // url
icon: ,
name: 'Open Collective', // name that appear in Sidebar
blank: true,
},
)
}
return bottomRoutes
}