platform-bible-react
    Preparing search index...

    Interface ResourcePickerDialogProps

    interface ResourcePickerDialogProps {
        allResources: DblResourceData[];
        isResourcesLoading?: boolean;
        localizedStrings: ResourcePickerDialogLocalizedStrings;
        onSelect: (resource: DblResourceData) => void;
        resourceType?: ResourceType;
        selectedResourceIds?: string[];
    }
    Index

    Properties

    allResources: DblResourceData[]

    Full list of DBL resources fetched by the caller via PAPI

    isResourcesLoading?: boolean

    Whether the allResources is still loading

    Localized strings — use RESOURCE_PICKER_DIALOG_STRING_KEYS with useLocalizedStrings

    onSelect: (resource: DblResourceData) => void

    Called when the user clicks "Use" on a resource entry

    resourceType?: ResourceType

    If provided, only resources of this type are shown

    selectedResourceIds?: string[]

    IDs of resources already selected in the calling panel