2020-08-28 16:19:46 -07:00
|
|
|
import Component from '@glimmer/component';
|
2020-08-26 15:44:50 -07:00
|
|
|
import { DataModelEntity } from '@datahub/data-models/constants/entity';
|
|
|
|
import { ICustomSearchResultPropertyComponentIcon } from '@datahub/data-models/types/search/custom-search-result-property-component/icon';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Component to render field as icons. Normally used in the header of a search result
|
|
|
|
*/
|
2020-08-28 16:19:46 -07:00
|
|
|
export default class CustomSearchResultPropertyComponentSearchIcon extends Component<{
|
2020-08-26 15:44:50 -07:00
|
|
|
/**
|
|
|
|
* The entity that we want to get the property from
|
|
|
|
*/
|
|
|
|
entity?: DataModelEntity;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* should it show the icon or not
|
|
|
|
*/
|
|
|
|
value?: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Options for this component
|
|
|
|
*/
|
|
|
|
options?: ICustomSearchResultPropertyComponentIcon['options'];
|
2020-08-28 16:19:46 -07:00
|
|
|
}> {}
|