mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
16 lines
584 B
TypeScript
16 lines
584 B
TypeScript
|
import { VFC } from 'react';
|
||
|
import { ReactComponent as ProPlanIcon } from 'assets/icons/pro-enterprise-feature-badge.svg';
|
||
|
import { ReactComponent as ProPlanIconLight } from 'assets/icons/pro-enterprise-feature-badge-light.svg';
|
||
|
import { ThemeMode } from 'component/common/ThemeMode/ThemeMode';
|
||
|
|
||
|
type EnterpriseBadgeProps = {
|
||
|
size?: number;
|
||
|
};
|
||
|
|
||
|
export const EnterpriseBadge: VFC<EnterpriseBadgeProps> = ({ size = 16 }) => (
|
||
|
<ThemeMode
|
||
|
darkmode={<ProPlanIconLight width={size} height={size} />}
|
||
|
lightmode={<ProPlanIcon width={size} height={size} />}
|
||
|
/>
|
||
|
);
|