44 lines
2 KiB
TypeScript
44 lines
2 KiB
TypeScript
// Module ID: 9733
|
|
// Function ID: 9734
|
|
// Name: AppChannelApplicationActionSheet
|
|
// Dependencies: [19, 21, 9730, 4445, 5998, 5630, 1233, 7704, 7705, 9734, 9732, 2]
|
|
// Exports: default
|
|
|
|
// Module 9733 (AppChannelApplicationActionSheet)
|
|
import closure_3 from "noop" /* 19 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
const require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/app_channels/native/AppChannelApplicationActionSheet.tsx");
|
|
|
|
export default function AppChannelApplicationActionSheet(arg0) {
|
|
({ selectedApplicationId, onChange } = arg0);
|
|
({ guildId, channelId } = arg0);
|
|
let obj = onChange(9730);
|
|
const options = obj.useAppChannelApplicationOptions(guildId, channelId, selectedApplicationId).options;
|
|
const items = [onChange];
|
|
const callback = React.useCallback((arg0) => {
|
|
onChange(arg0);
|
|
closure_1_1(closure_1_2[3]).hideActionSheet();
|
|
}, items);
|
|
obj = { header: null, children: null };
|
|
obj = { title: null };
|
|
const intl = onChange(1233).intl;
|
|
obj[0] = intl.string(onChange(1233).t.F2FMFR);
|
|
obj[0] = jsx(onChange(5630).BottomSheetTitleHeader, { title: null });
|
|
obj1 = { accessibilityLabel: null, value: null, onChange: null, hasIcons: true, children: null };
|
|
const intl2 = onChange(1233).intl;
|
|
obj1[0] = intl2.string(onChange(1233).t.F2FMFR);
|
|
if (selectedApplicationId == null) {
|
|
selectedApplicationId = "";
|
|
}
|
|
obj1[1] = selectedApplicationId;
|
|
obj1[2] = callback;
|
|
obj1[4] = options.map((arg0) => {
|
|
({ application, status } = arg0);
|
|
return callback2(onChange(7705).TableRadioRow, { value: application.id, label: application.name, subLabel: callback(9734)(status), disabled: !status.supported, icon: callback2(callback(9732), { application }) }, application.id);
|
|
});
|
|
obj[1] = jsx(onChange(7704).TableRadioGroup, { accessibilityLabel: null, value: null, onChange: null, hasIcons: true, children: null });
|
|
return jsx(onChange(5998).ActionSheet, { title: null });
|
|
};
|
|
export const APP_CHANNEL_APPLICATION_ACTION_SHEET_KEY = "AppChannelApplicationActionSheet";
|