2024-03-18 13:58:05 +01:00
|
|
|
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';
|
|
|
|
|
2023-10-02 14:25:46 +02:00
|
|
|
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 />;
|
|
|
|
};
|