@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
26 lines (25 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaPickerUnsplashProvider = void 0;
const Constants_1 = require("../../Constants");
const Enums_1 = require("../../Enums");
const ManifestIds_1 = require("../../ManifestIds");
const Icon_1 = require("../../Icon");
class MediaPickerUnsplashProvider {
constructor() {
this.hasEditorForMedia = (media) => {
return false;
};
this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.unsplash;
this.category = "image";
this.name = "Omnia.Ux.UnsplashProvider.Title";
this.icon = new Icon_1.SvgIcon("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" viewBox=\"0 0 32 32\">" +
"<path d=\"M32 16.4v13.6H0V16.4h10.1v4.3h11.8v-4.3H32zm-10.1-11.2H10.1v4.3h11.8V5.2z\" fill=\"#fff\" fill-opacity=\"1\"></path>" +
"</svg>");
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxUnsplashProvider;
this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
this.sortOrder = 40;
this.supportGalleryFeature = true;
}
}
exports.MediaPickerUnsplashProvider = MediaPickerUnsplashProvider;