/
githubmirror
/
ydb-embedded-ui
Обзор
Документация
Войти
/
githubmirror
/
ydb-embedded-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components/ComponentsProvider/componentsRegistry.ts
20 строк
837 B
Anton Standrik
feat!: remove ai assistant button (#2535)
03 июл 2025, 09:43
Не верифицирован
03 июл 2025, 09:43
2511059
Код
Авторство
О чём код?
import {AsideNavigation} from '../../containers/AsideNavigation/AsideNavigation'; import {ErrorBoundaryInner} from '../ErrorBoundary/ErrorBoundary'; import {ShardsTable} from '../ShardsTable/ShardsTable'; import {StaffCard} from '../User/StaffCard'; import type {ComponentsRegistryTemplate} from './registry'; import {Registry} from './registry'; const EmptyPlaceholder = () => null; const componentsRegistryInner = new Registry() .register('StaffCard', StaffCard) .register('AsideNavigation', AsideNavigation) .register('ErrorBoundary', ErrorBoundaryInner) .register('ShardsTable', ShardsTable) .register('ChatPanel', EmptyPlaceholder); export type ComponentsRegistry = ComponentsRegistryTemplate<typeof componentsRegistryInner>; export const componentsRegistry = componentsRegistryInner as ComponentsRegistry;