Files
Verso/services/web/frontend/js/features/file-tree/components/file-tree-folder-icons.tsx
T
Davinder SinghandCopybot 7daaba5af7 Merge pull request #31957 from overleaf/ds-removing-useIsNewEditorEnabled-5
[Part 5] Removing the usage of `useIsNewEditorEnabled` for editor tear down

GitOrigin-RevId: 086183b196a44b393dc0c0f60f7bfbc5738901fc
2026-03-06 09:17:25 +00:00

24 lines
640 B
TypeScript

import { useTranslation } from 'react-i18next'
import MaterialIcon from '@/shared/components/material-icon'
function FileTreeFolderIcons({ expanded }: { expanded: boolean }) {
const { t } = useTranslation()
return (
<>
<div
// TODO ide-redesign-cleanup: rename the class now its no longer a button
className="folder-expand-collapse-button"
aria-label={expanded ? t('collapse') : t('expand')}
>
<MaterialIcon
type={expanded ? 'expand_more' : 'chevron_right'}
className="file-tree-expand-icon"
/>
</div>
</>
)
}
export default FileTreeFolderIcons