2026-09-23 06:49:31 +00:00
|
|
|
// Module ID: 14032
|
|
|
|
|
// Function ID: 14033
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClipsEnabled
|
2026-09-23 06:49:31 +00:00
|
|
|
// Dependencies: [1998, 14033, 504, 2]
|
2026-08-25 06:04:03 +00:00
|
|
|
// Exports: isClipsEnabled, useIsClipsEnabled
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-23 06:49:31 +00:00
|
|
|
// Module 14032 (isClipsEnabled)
|
|
|
|
|
import ClipsExperiment from "ClipsExperiment" /* 14033 */;
|
2026-09-19 06:52:51 +00:00
|
|
|
import ClipsStore from "ClipsStore" /* 1998 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/clips/isClipsEnabled.tsx");
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
export const isClipsEnabled = function isClipsEnabled() {
|
2026-09-10 05:38:07 +00:00
|
|
|
let clipsEnabled = ClipsExperiment.areClipsAvailable();
|
2026-08-25 06:04:03 +00:00
|
|
|
if (clipsEnabled) {
|
2026-09-10 05:38:07 +00:00
|
|
|
clipsEnabled = ClipsStore.getState().clipsSettings.clipsEnabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-25 06:04:03 +00:00
|
|
|
return clipsEnabled;
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
export const useIsClipsEnabled = function useIsClipsEnabled() {
|
2026-09-10 05:38:07 +00:00
|
|
|
let isClipsAvailable = ClipsExperiment.useIsClipsAvailable();
|
|
|
|
|
const items = [ClipsStore];
|
2026-08-12 06:57:52 +00:00
|
|
|
if (isClipsAvailable) {
|
2026-08-25 06:04:03 +00:00
|
|
|
isClipsAvailable = obj2.useStateFromStores(items, () => state.getState().clipsSettings.clipsEnabled);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
return isClipsAvailable;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|