import { SharePointSearchResultItem } from "./Search"; import { GuidValue } from "@omnia/fx/models"; export interface SearchItemClickedOptions { /** * The custom action always runs before close search dialog or clear the search result * */ customAction: () => Promise; /** * Clear the search result and search text box * */ clearSearchResult: boolean; /** * Close the search dialog * */ closeDialog: boolean; } export interface ISearchTemplate { dataRow: SharePointSearchResultItem; /** * Capture viewed search result item if collect statistics is enabled and handle to close search dialog * */ onItemClicked?: (searchCategoryId?: GuidValue, itemUrl?: string, itemClickedOptions?: SearchItemClickedOptions) => void; searchCategoryId?: GuidValue; showLinkBelowTitle?: boolean; navigateWithoutVariation?: boolean; }