mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			908 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			908 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import Component from '@ember/component';
 | |
| import { IDynamicLinkNode } from 'wherehows-web/typings/app/datasets/dynamic-link';
 | |
| import { DatasetPlatform } from 'wherehows-web/constants';
 | |
| import { Task, TaskInstance } from 'ember-concurrency';
 | |
| 
 | |
| export default class DataPlatform extends Component {
 | |
|   /**
 | |
|    * Props the dataset platform, including name and count of datasets within the platform
 | |
|    * @type {{platform: DatasetPlatform | string, count?: number}}
 | |
|    */
 | |
|   platform: { platform: DatasetPlatform | string; count?: number };
 | |
| 
 | |
|   /**
 | |
|    * References the dynamic link properties for the related platform
 | |
|    * @type {IDynamicLinkNode}
 | |
|    */
 | |
|   node: IDynamicLinkNode;
 | |
| 
 | |
|   /**
 | |
|    * Task on parent to async request related platform data
 | |
|    * @type {(Task<Promise<number>, (a?: any) => TaskInstance<Promise<number>>>)}
 | |
|    */
 | |
|   platformTask: Task<Promise<number>, (a?: any) => TaskInstance<Promise<number>>>;
 | |
| }
 | 
