UNPKG

@fleetbase/ember-ui

Version:

Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.

17 lines (13 loc) 450 B
import Component from '@glimmer/component'; import isImageFile from '../utils/is-image-file'; export default class FileComponent extends Component { get file() { return this.args.file; } get isImage() { return isImageFile(this.file); } get hasActions() { return typeof this.args.onDelete === 'function' || typeof this.args.onDownload === 'function' || typeof this.args.onPreview === 'function'; } }