2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 13423
|
|
|
|
|
// Function ID: 13424
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClipsEnabled
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [1999, 13424, 504, 2]
|
2026-08-25 06:04:03 +00:00
|
|
|
// Exports: isClipsEnabled, useIsClipsEnabled
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 13423 (isClipsEnabled)
|
|
|
|
|
import ClipsExperiment from "ClipsExperiment" /* 13424 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import ClipsStore from "ClipsStore" /* 1999 */;
|
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
|
|
|
};
|