* feat: integrate main layout, toolbar, and rail from redesign into main ide-react folder * feat: remove additional files no longer used after ide redesign GitOrigin-RevId: 8fd77f63cb9c67be91995a9dde13b0fe2376d80f
24 lines
754 B
TypeScript
24 lines
754 B
TypeScript
import { ElementType } from 'react'
|
|
import importOverleafModules from '../../../../../macros/import-overleaf-module.macro'
|
|
import { useTranslation } from 'react-i18next'
|
|
import RailPanelHeader from '@/features/ide-react/components/rail/rail-panel-header'
|
|
|
|
const integrationPanelComponents = importOverleafModules(
|
|
'integrationPanelComponents'
|
|
) as { import: { default: ElementType }; path: string }[]
|
|
|
|
export default function IntegrationsPanel() {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className="integrations-panel">
|
|
<RailPanelHeader title={t('integrations')} />
|
|
{integrationPanelComponents.map(
|
|
({ import: { default: Component }, path }) => (
|
|
<Component key={path} />
|
|
)
|
|
)}
|
|
</div>
|
|
)
|
|
}
|