mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-25 15:58:56 +01:00
19 lines
460 B
JavaScript
19 lines
460 B
JavaScript
import {type ClassComponent} from 'mithril';
|
|
|
|
import Component from '../Component.jsx';
|
|
import Content from './Content.jsx';
|
|
|
|
export default class Card extends Component implements ClassComponent<{outlined?: boolean}> {
|
|
view(vnode) {
|
|
this.attrs.addClassNames('mdc-card', {
|
|
'mdc-card--outlined': this.attrs.has('outlined')
|
|
});
|
|
|
|
return (
|
|
<div {...this.attrs.all()}>
|
|
<Content>{vnode.children}</Content>
|
|
</div>
|
|
);
|
|
}
|
|
}
|