import { getRecommendedDateDataset } from "@gooddata/sdk-ui-kit";
export function getRecommendedCatalogDateDataset(dateDatasets) {
    const recommendedDateDataSetId = getRecommendedDateDataset(dateDatasets.map((ds) => {
        return {
            id: ds.dataSet.id,
            title: ds.dataSet.title,
            relevance: ds.relevance,
        };
    }))?.id;
    return recommendedDateDataSetId
        ? dateDatasets.find((ds) => ds.dataSet.id === recommendedDateDataSetId)
        : undefined;
}
