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
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

22 lines
624 B
TypeScript

import type { VFC } from 'react';
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 = {};
export const ViewIntegration: VFC<IViewIntegrationProps> = () => {
const { providerId } = useParams<{ providerId: string }>();
if (providerId === 'jira') {
return <JiraIntegration />;
}
if (providerId === 'edge') {
return <EdgeIntegration />;
}
return <NotFound />;
};