'use client' import React, { FC } from 'react' import { useTranslation } from 'react-i18next' import cn from 'classnames' import { useSelectedLayoutSegments } from 'next/navigation' import Link from 'next/link' import Item from './app-nav-item' const list = [ { id: '1', name: 'Story Bot', }, { id: '2', name: 'Fancy title' } ] const SelectedDiscoveryIcon = () => ( ) const DiscoveryIcon = () => ( ) const SideBar: FC = () => { const { t } = useTranslation() const segments = useSelectedLayoutSegments() const lastSegment = segments.slice(-1)[0] const isDiscoverySelected = lastSegment === 'apps' return (
{isDiscoverySelected ? : }
{t('explore.sidebar.discovery')}
{list.length > 0 && (
{t('explore.sidebar.workspace')}
{list.map(({id, name}) => { return ( ) })}
)}
) } export default React.memo(SideBar)