import { matchModifiers , useModifiers } from 'contexts/Modifiers' ; import { ActiveModifiers } from 'types/Modifiers' ; param day param displayMonth export function useActiveModifiers ( day , displayMonth ? ) { const modifiers = useModifiers ( ) ; const activeModifiers = matchModifiers ( day , modifiers , displayMonth ) ; return activeModifiers ; }