@desci-labs/frontend-components
Version:
A library for commonly used components on the DeSci Frontend web apps
35 lines • 1.67 kB
TypeScript
import { default as React } from 'react';
import { OrcidProfilePayload, OrcidPublishedNodesPayload, UserProfile } from '../types';
interface PublicationsProps {
/** The maximum number of nodes to show */
maxPublicationsToShow: number;
/** The function to handle the author click */
handleAuthorClick: (author: {
name: string;
orcid: string;
id: string;
}) => void;
/** Whether the works are loading */
isOaWorksLoading: boolean;
/** The type of more details to show */
showMoreDetails: string;
/** The maximum number of authors to show per publication */
maxAuthors: number;
/** The id in page route */
idInRoute: string;
/** The function to set the maximum number of authors to show per publication */
setMaxAuthors: React.Dispatch<React.SetStateAction<number>>;
/** The function to set the type of more details to show */
setShowMoreDetails: React.Dispatch<React.SetStateAction<'publications'>>;
/** The works data */
worksData: OrcidProfilePayload;
/** The published nodes data - works published on DeSci */
publishedNodesData: OrcidPublishedNodesPayload;
/** The current user profile */
currentUserProfile: UserProfile;
/** The url to resolve the dpid */
dpidResolverUrl: string;
}
export declare const Publications: ({ maxPublicationsToShow, handleAuthorClick, isOaWorksLoading, showMoreDetails, maxAuthors, idInRoute, setMaxAuthors, setShowMoreDetails, worksData, publishedNodesData, currentUserProfile, dpidResolverUrl, }: PublicationsProps) => import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=Publications.d.ts.map