github
1384 of 2745 branches covered (50.42%)
0 of 153 new or added lines in 12 files covered. (0.0%)
13872 of 75317 relevant lines covered (18.42%)
1.84 hits per line
NEW
|
import { useContext } from 'react'; |
|
NEW
|
import { FilterDisplayContext } from '../context'; |
× |
NEW
|
|
× |
NEW
|
export const useCompact = () => { |
× |
NEW
|
const result = useContext(FilterDisplayContext) || {};
|
× |
NEW
|
const { compact } = result;
|
× |
NEW
|
return !!compact;
|
× |
NEW
|
}; |
× |