import { EditorView } from '@milkdown/prose' ; import { ButtonMap } from '../item' ; export const noActive = ( buttonMap , view ) => { return Object . values ( buttonMap ) . filter ( ( item ) => item . enable ( view ) ) . every ( ( { $ } ) => $ . classList . contains ( 'hide' ) ) ; } ;