50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
// Module ID: 5806
|
|
// Function ID: 5807
|
|
// Name: ActionSheetRowIcon
|
|
// Dependencies: [19, 17, 21, 5414, 5420, 5807, 5808, 2]
|
|
// Exports: ActionSheetSwitchRow
|
|
|
|
// Module 5806 (ActionSheetRowIcon)
|
|
import importAllResult from "noop";
|
|
import { View } from "get ActivityIndicator";
|
|
import { jsx } from "jsxProd";
|
|
|
|
const require = arg1;
|
|
class ActionSheetRow {
|
|
constructor(arg0) {
|
|
str = global.variant;
|
|
if (str === undefined) {
|
|
str = "default";
|
|
}
|
|
({ arrow, icon } = global);
|
|
obj = { value: str, children: null };
|
|
merged = Object.assign(global, Object.create(null));
|
|
obj = { variant: str, label: global.label, arrow, icon };
|
|
merged1 = Object.assign(merged);
|
|
obj[1] = jsx(require("TableRowInner").TableRow, obj);
|
|
return jsx(c5.Provider, obj);
|
|
}
|
|
}
|
|
let context = importAllResult.createContext("default");
|
|
ActionSheetRow.Icon = function ActionSheetRowIcon(IconComponent) {
|
|
IconComponent = IconComponent.IconComponent;
|
|
const context = importAllResult.useContext(closure_5);
|
|
const obj = { source: IconComponent.source, IconComponent: null, variant: null };
|
|
obj[1] = IconComponent;
|
|
obj[2] = context;
|
|
return jsx(require(5420) /* TableRowIcon */.TableRowIcon, { source: IconComponent.source, IconComponent: null, variant: null });
|
|
};
|
|
ActionSheetRow.Group = function ActionSheetRowGroup(arg0) {
|
|
let children;
|
|
let hasIcons;
|
|
let title;
|
|
({ children, title, hasIcons } = arg0);
|
|
return <View>{jsx(require(5807) /* TableRowGroupTitle */.TableRowGroup, { hasIcons, title, children })}</View>;
|
|
};
|
|
const result = require("jsxProd").fileFinishedImporting("design/components/Sheet/native/ActionSheetRow.native.tsx");
|
|
|
|
export { ActionSheetRow };
|
|
export const ActionSheetSwitchRow = function ActionSheetSwitchRow(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(require(5808) /* TableSwitchRow */.TableSwitchRow, {});
|
|
};
|