Type '{ file: File; onItemClick: Mock<any, any>; onLoadSuccess: Func; ref: RefObject<{ pages: RefObject<Record<string, unknown>[]>; viewer: RefObject<{ scrollPageIntoView: (args: ScrollPageIntoViewArgs) => void; }>; }>; }' is not assignable to type 'IntrinsicAttributes & { children?: ReactNode; className?: ClassName; error?: NodeOrRenderer; externalLinkRel?: string | undefined; ... 15 more ...; rotate?: number | ... 1 more ... | undefined; } & EventProps<...>'.