Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 25 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import template from './sw-ai-copilot-warning.html.twig'; |
||
2 | import './sw-ai-copilot-warning.scss'; |
||
3 | |||
4 | /** |
||
5 | * @package admin |
||
6 | * @private |
||
7 | */ |
||
8 | export default Shopware.Component.wrapComponentConfig({ |
||
9 | template, |
||
10 | |||
11 | props: { |
||
12 | text: { |
||
13 | type: String, |
||
14 | required: false, |
||
15 | default: '', |
||
16 | }, |
||
17 | }, |
||
18 | |||
19 | computed: { |
||
20 | warningText(): string { |
||
21 | return this.text || this.$tc('sw-ai-copilot-warning.text'); |
||
22 | }, |
||
23 | }, |
||
24 | }); |
||
25 |