Debian Codegraph @

addons/point_of_sale/static/src/app/components/centered_icon/centered_icon.js

raw
1 import { Component, xml } from "@odoo/owl";
2
3 export class CenteredIcon extends Component {
4 static props = {
5 icon: String,
6 text: { type: String, optional: true },
7 class: { type: String, optional: true },
8 };
9 static defaultProps = {
10 class: "",
11 };
12 static template = xml`
13 <div t-attf-class="{{props.class}} d-flex flex-column align-items-center justify-content-center">
14 <i t-attf-class="fa {{props.icon}}" role="img" />
15 <h3 t-if="props.text" t-esc="props.text" class="w-75 mt-2 text-center"/>
16 </div>
17 `;
18 }