mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
22 lines
728 B
TypeScript
22 lines
728 B
TypeScript
|
import { ADMIN } from 'component/providers/AccessProvider/permissions';
|
||
|
import { PermissionGuard } from 'component/common/PermissionGuard/PermissionGuard';
|
||
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||
|
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
|
||
|
import { SignalEndpointsTable } from './SignalEndpointsTable/SignalEndpointsTable';
|
||
|
|
||
|
export const Signals = () => {
|
||
|
const { isEnterprise } = useUiConfig();
|
||
|
|
||
|
if (!isEnterprise()) {
|
||
|
return <PremiumFeature feature='signals' />;
|
||
|
}
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
<PermissionGuard permissions={ADMIN}>
|
||
|
<SignalEndpointsTable />
|
||
|
</PermissionGuard>
|
||
|
</div>
|
||
|
);
|
||
|
};
|