mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	1. Moved link creation bottom next to licensed users view 2. Created licensed users component 3. Added flag OSS:  All others 
		
			
				
	
	
		
			19 lines
		
	
	
		
			618 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			618 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { VFC } from 'react';
 | |
| import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
 | |
| import { InviteLinkBarContent } from './InviteLinkBarContent';
 | |
| 
 | |
| export const InviteLinkBar: VFC = () => {
 | |
|     const { trackEvent } = usePlausibleTracker();
 | |
|     const onInviteLinkActionClick = (inviteLink?: string) => {
 | |
|         trackEvent('invite', {
 | |
|             props: {
 | |
|                 eventType: inviteLink
 | |
|                     ? 'link bar action: edit'
 | |
|                     : 'link bar action: create',
 | |
|             },
 | |
|         });
 | |
|     };
 | |
| 
 | |
|     return <InviteLinkBarContent onActionClick={onInviteLinkActionClick} />;
 | |
| };
 |