import { CookieConsent , SetCookieProps } from './types' ; export const allCookiesSetToValue = ( value ) : Required < CookieConsent > => ( { session : value , persistent : value , necessary : true , preferences : value , statistics : value , marketing : value , firstParty : value , thirdParty : value , } ) ; export const allPropsApproved = ( props , consent ? ) : boolean => { if ( ! consent ) return false ; if ( ! consent [ props . duration ] ) return false ; if ( ! consent [ props . provenance ] ) return false ; if ( ! consent [ props . purpose ] ) return false ; return true ; } ;