|
|
|
@ -6,6 +6,7 @@ import { useToggle } from 'hooks' |
|
|
|
import type { Match } from 'features/Matches' |
|
|
|
import type { Match } from 'features/Matches' |
|
|
|
|
|
|
|
|
|
|
|
export const useCard = ({ |
|
|
|
export const useCard = ({ |
|
|
|
|
|
|
|
accessibleBySubscription, |
|
|
|
accessibleInUsersCountry, |
|
|
|
accessibleInUsersCountry, |
|
|
|
hasVideo, |
|
|
|
hasVideo, |
|
|
|
}: Match) => { |
|
|
|
}: Match) => { |
|
|
|
@ -18,6 +19,7 @@ export const useCard = ({ |
|
|
|
const isClickable = ( |
|
|
|
const isClickable = ( |
|
|
|
hasVideo |
|
|
|
hasVideo |
|
|
|
&& accessibleInUsersCountry |
|
|
|
&& accessibleInUsersCountry |
|
|
|
|
|
|
|
&& accessibleBySubscription |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const flipCard = useCallback(() => { |
|
|
|
const flipCard = useCallback(() => { |
|
|
|
|