mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
9c1c2881b0
Refactor new editor rail component GitOrigin-RevId: a6eeee36f26dd6fc11caef2d91ecc9107cdb790e
24 lines
725 B
TypeScript
24 lines
725 B
TypeScript
import { ElementType } from 'react'
|
|
import importOverleafModules from '../../../../../macros/import-overleaf-module.macro'
|
|
import { useTranslation } from 'react-i18next'
|
|
import RailPanelHeader from '../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>
|
|
)
|
|
}
|