// Module ID: 14172 // Function ID: 14173 // Name: SafetySettingsNotice // Dependencies: [19, 17, 5435, 21, 4668, 712, 14173, 4334, 4739, 1236, 2] // Exports: default // Module 14172 (SafetySettingsNotice) import ThemesDefault from "Themes" /* 712 */; import closure_2 from "noop" /* 19 */; import { View } from "get ActivityIndicator" /* 17 */; import { SafetySettingsNoticeAction as closure_4 } from "SafetyToastType" /* 5435 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4668 */; const require = arg1; ({ jsx: c5, jsxs: closure_6 } = jsxProd); createCacheKey = { blockedIgnoredRedirect: null }; createCacheKey = { display: "flex", flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_8, padding: ThemesDefault.space.PX_8, borderRadius: ThemesDefault.radii.xs, borderColor: ThemesDefault.colors.TEXT_LINK, borderWidth: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_FEEDBACK_INFO }; createCacheKey[0] = createCacheKey; let closure_7 = createCacheKey.createStyles(createCacheKey); let result = require("set").fileFinishedImporting("modules/safety_common/native/SafetySettingsNotice.tsx"); export default function SafetySettingsNotice(noticeType) { ({ label, labelHook } = noticeType); noticeType = noticeType.noticeType; const count = noticeType.count; let React; const items = [noticeType]; const effect = React.useEffect(() => { const result = labelHook(noticeType[6]).trackSafetySettingsNoticeAnalytics(noticeType, closure_1_4.VIEWED); }, items); const items1 = [noticeType, labelHook]; React = React.useCallback(() => { labelHook(); const result = labelHook(noticeType[6]).trackSafetySettingsNoticeAnalytics(noticeType, closure_1_4.LEARN_MORE); }, items1); let obj = { style: callback2().blockedIgnoredRedirect, children: null }; const items2 = [callback(labelHook(noticeType[7]).CircleInformationIcon, { color: "text-link" }), ]; obj = { style: { flexShrink: 1 }, variant: "heading-sm/medium", children: null }; if (null != count) { const intl2 = tmp6(tmp7[9]).intl; obj = { hook: null, count: null }; obj[0] = function hook(children) { return closure_1_5(labelHook(noticeType[8]).Text, { role: "link", variant: "heading-sm/medium", color: "text-link", onPress: closure_2, children }); }; obj[1] = count; let formatResult = intl2.format(label, obj); } else { const intl = tmp6(tmp7[9]).intl; obj1 = { hook: null }; obj1[0] = function hook(children) { return closure_1_5(labelHook(noticeType[8]).Text, { role: "link", variant: "heading-sm/medium", color: "text-link", onPress: closure_2, children }); }; formatResult = intl.format(label, obj1); } obj[2] = formatResult; items2[1] = callback(labelHook(noticeType[8]).Text, obj); obj[1] = items2; return closure_6(View, obj); };