UNPKG

@desci-labs/frontend-components

Version:

A library for commonly used components on the DeSci Frontend web apps

38 lines 2 kB
import { ScoreGenResult } from '../../interfaces'; interface AIAnalyticsProps { /** Whether the page is an openalex or doi page - novelty scores design changes based on this */ openAlexOrDoiPage?: boolean; /** Whether to show the content novelty score */ showContentNovelty: boolean; /** Whether to show the context novelty score */ showContextNovelty: boolean; /** Whether the novelty scores are being calculated */ isCalculating: boolean; /** The function to handle the content novelty toggle */ handleContentNoveltyToggle?: () => void; /** The function to handle the context novelty toggle */ handleContextNoveltyToggle?: () => void; /** Whether to hide the content novelty score */ hideContentNovelty?: boolean; /** Whether to hide the context novelty score */ hideContextNovelty?: boolean; /** The content novelty score if not using scoreData */ contentNovelty?: number; /** The context novelty score if not using scoreData */ contextNovelty?: number; /** The score data */ scoreData?: ScoreGenResult; /** Whether the manuscript is missing */ missingManuscript?: boolean; /** Whether the content failure is present */ contentFailure?: boolean; /** Whether the context failure is present */ contextFailure?: boolean; /** Whether to show the content novelty toggle */ showContentNoveltyToggle: boolean; /** Whether to show the context novelty toggle */ showContextNoveltyToggle: boolean; } export declare const NoveltyScores: ({ openAlexOrDoiPage, showContentNovelty, showContextNovelty, isCalculating, handleContentNoveltyToggle, handleContextNoveltyToggle, hideContentNovelty, hideContextNovelty, contentNovelty, contextNovelty, scoreData, missingManuscript, contentFailure, contextFailure, showContentNoveltyToggle, showContextNoveltyToggle, }: AIAnalyticsProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=NoveltyScores.d.ts.map