UNPKG

@desci-labs/frontend-components

Version:

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

25 lines 1.49 kB
import { OrcidCoauthorsData, OrcidCoauthorsPayload, UserProfile } from '../types'; import { Dispatch, SetStateAction } from 'react'; interface CoauthorsProps { /** Whether the coauthors data is being fetched - true if the coauthors data is being fetched */ isCoauthorsFetching: boolean; /** The coauthors data, metadata included */ coauthorsData: OrcidCoauthorsPayload | undefined; /** Whether the coauthors data is loading - only true when data is fetched the first time or after cache is cleared */ isCoauthorsLoading: boolean; /** The function to handle the click event on a coauthor */ handleAuthorClick: (author: OrcidCoauthorsData) => void; /** The user profile */ currentUserProfile: UserProfile; /** The current page of the coauthors data */ coauthorsPage: number; /** The function to set the current page of the coauthors data */ setCoauthorsPage: (page: number) => void; /** The search string for the coauthors data */ coauthorsSearchString: string; /** The function to set the search string for the coauthors data */ setCoauthorsSearchString: Dispatch<SetStateAction<string>>; } export declare const Coauthors: ({ isCoauthorsFetching, coauthorsData, isCoauthorsLoading, currentUserProfile, handleAuthorClick, coauthorsPage, setCoauthorsPage, coauthorsSearchString, setCoauthorsSearchString }: CoauthorsProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Coauthors.d.ts.map