import { Popover, Transition } from '@headlessui/react' import { ActionButton } from './ActionButton' import { faHome } from '@fortawesome/free-solid-svg-icons' import { type IndexLoaderData } from 'lib/types' import { paths } from 'lib/paths' import { isTauri } from '../lib/isTauri' import { Link } from 'react-router-dom' import { Fragment } from 'react' import { FileTree } from './FileTree' import { sep } from '@tauri-apps/api/path' import { Logo } from './Logo' import { APP_NAME } from 'lib/constants' import { useCommandsContext } from 'hooks/useCommandsContext' import { CustomIcon } from './CustomIcon' const ProjectSidebarMenu = ({ project, file, renderAsLink = false, }: { renderAsLink?: boolean project?: IndexLoaderData['project'] file?: IndexLoaderData['file'] }) => { return (
{project?.name ? project.name : APP_NAME}
{project?.entrypointMetadata && (Created{' '} {project.entrypointMetadata.createdAt.toLocaleDateString()}
)}