import "../configureDom4" ; import * as Classes from "../classes" ; export function isDarkTheme ( element ) { return element != null && element instanceof Element && element . closest ( `.${ Classes . DARK }` ) != null ; }