2026-09-18 06:58:00 +00:00
|
|
|
// Module ID: 13878
|
|
|
|
|
// Function ID: 13879
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClipsEnabled
|
2026-09-18 06:58:00 +00:00
|
|
|
// Dependencies: [1915, 13879, 504, 2]
|
2026-08-25 06:04:03 +00:00
|
|
|
// Exports: isClipsEnabled, useIsClipsEnabled
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-18 06:58:00 +00:00
|
|
|
// Module 13878 (isClipsEnabled)
|
|
|
|
|
import ClipsExperiment from "ClipsExperiment" /* 13879 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import ClipsStore from "ClipsStore" /* 1915 */;
|
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
|
|
|
};
|