Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
32 lines
944 B
TypeScript
32 lines
944 B
TypeScript
// Module ID: 11014
|
|
// Function ID: 11015
|
|
// Name: useCanSetThumbnail
|
|
// Dependencies: [2044, 563, 2]
|
|
// Exports: default
|
|
|
|
// Module 11014 (useCanSetThumbnail)
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/media_channel/useCanSetThumbnail.tsx");
|
|
|
|
export default function useCanSetThumbnail(arg0, isImage) {
|
|
_require = arg0;
|
|
const items = [ChannelStore];
|
|
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => ChannelStore.getChannel(closure_0));
|
|
let isMediaChannelResult;
|
|
if (stateFromStores != null) {
|
|
isMediaChannelResult = stateFromStores.isMediaChannel();
|
|
}
|
|
if (isMediaChannelResult) {
|
|
isImage = undefined;
|
|
if (isImage != null) {
|
|
isImage = isImage.isImage;
|
|
}
|
|
isMediaChannelResult = true === isImage;
|
|
}
|
|
return isMediaChannelResult;
|
|
};
|