Tankōbon / hooks/use-organization-offer / useOrganizationOffer
Function: useOrganizationOffer()
useOrganizationOffer(
confirm): (outcome) =>Promise<string[]>
Defined in: hooks/use-organization-offer.ts:17
Follows up on what the library organization did after an addition (organization of an addFile/addFolder/resync result): when it offers to move comics (ask mode), asks through confirm (the view's useConfirm()) and moves them on approval. Resolves with the status parts to show (moved, failed, or the error), empty when there was nothing to say.
Parameters
confirm
(options) => Promise<boolean>
Returns
(outcome) => Promise<string[]>