mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 02:00:07 +02:00

Update error logs designs for new editor GitOrigin-RevId: 0de3a54446a0ff114a1debb7b5f274d3a8f19c42
23 lines
720 B
TypeScript
23 lines
720 B
TypeScript
import { ElementType } from 'react'
|
|
import importOverleafModules from '../../../../../macros/import-overleaf-module.macro'
|
|
import { useTranslation } from 'react-i18next'
|
|
import RailPanelHeader from '../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>
|
|
)
|
|
}
|