mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 00:54:50 +03:00
12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
import {helper} from '@ember/component/helper';
|
|
import {htmlSafe} from '@ember/template';
|
|
|
|
export function integrationLogoStyle([integration]/*, hash*/) {
|
|
if (integration.iconImage) {
|
|
let style = `background-image:url(${integration.iconImage});background-size:36px;`;
|
|
return htmlSafe(style);
|
|
}
|
|
}
|
|
|
|
export default helper(integrationLogoStyle);
|