mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-25 07:47:55 +01:00
17 lines
432 B
JavaScript
17 lines
432 B
JavaScript
import {type ClassComponent} from 'mithril';
|
|
|
|
import Component from '../Component.jsx';
|
|
|
|
export default class Actions extends Component implements ClassComponent<{'full-bleed'?: boolean}> {
|
|
view(vnode) {
|
|
this.attrs.addClassNames('mdc-card__actions', {
|
|
'mdc-card__actions--full-bleed': this.attrs.has('full-bleed')
|
|
});
|
|
return (
|
|
<div {...this.attrs.all()}>
|
|
{vnode.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|