import m from 'mithril' ; import classnames from 'classnames' ; import { Classes , IAttrs , ISizeAttrs } from '../../_shared' ; export interface IMenuHeadingAttrs extends IAttrs , ISizeAttrs { } export class MenuHeading implements m . Component < IMenuHeadingAttrs > { public view ( { attrs , children } ) { const { class : className , ... htmlAttrs } = attrs ; return m ( '' , { class : classnames ( Classes . MENU_HEADING , className ) , ... htmlAttrs } , children ) ; } }