Membership subscriptions ()

Enter: Odysee Premium.
This commit is contained in:
mayeaux 2022-03-09 19:05:37 +01:00 committed by GitHub
parent a34e07e970
commit fb3a73d8a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
96 changed files with 3032 additions and 347 deletions

View file

@ -1,10 +1,17 @@
// @flow
import { useState, useEffect } from 'react';
/**
*
* @param {boolean} shouldFetch - Whether to get the views, not needed for some pages
* @param {array} uris - Array of the LBRY uris of content to fetch views for
* @param {object} claimsByUri - Function to get claimIds from claim uris
* @param {function} doFetchViewCount - Get views account per a string of comma separated Claim Ids
*/
export default function useFetchViewCount(
shouldFetch: ?boolean,
uris: Array<string>,
claimsByUri: any,
claimsByUri: {},
doFetchViewCount: (string) => void
) {
const [fetchedUris, setFetchedUris] = useState([]);