1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/integrations/ViewIntegration/ViewIntegration.tsx

22 lines
624 B
TypeScript
Raw Normal View History

import type { VFC } from 'react';
2023-09-08 10:49:30 +02:00
import { useParams } from 'react-router-dom';
import NotFound from 'component/common/NotFound/NotFound';
import { JiraIntegration } from './JiraIntegration/JiraIntegration';
import { EdgeIntegration } from './EdgeIntegration/EdgeIntegration';
type IViewIntegrationProps = {};
2023-09-08 10:49:30 +02:00
export const ViewIntegration: VFC<IViewIntegrationProps> = () => {
const { providerId } = useParams<{ providerId: string }>();
if (providerId === 'jira') {
return <JiraIntegration />;
}
if (providerId === 'edge') {
return <EdgeIntegration />;
}
return <NotFound />;
};