decord/source/design/components/TableRow/native/TableRowDivider.native.tsx
2026-08-25 06:04:03 +00:00

54 lines
1.9 KiB
TypeScript

// Module ID: 5438
// Function ID: 5439
// Name: TableRowDivider
// Dependencies: [19, 17, 5439, 21, 4380, 712, 5265, 1367, 4101, 2]
// Exports: TableRowDivider
// Module 5438 (TableRowDivider)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import useIsMobileVisualRefreshExperimentEnabledDefault from "useIsMobileVisualRefreshExperimentEnabled" /* 1367 */;
import map from "map" /* 4101 */;
import result2 from "result" /* 5265 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { getTableDividerWidth } from "TABLE_ROW_HEIGHT" /* 5439 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4380 */;
require = arg1;
noopAll;
let closure_6 = createCacheKey.createStyles((arg0, arg1, arg2) => {
const tmp = getTableDividerWidth(arg1);
let num = 12;
if (arg0) {
num = arg2;
}
let prop;
if (!arg1) {
prop = ThemesDefault.colors.TABLEROW_BACKGROUND_DEFAULT;
}
obj = { container: obj, divider: null };
obj = { backgroundColor: prop, height: tmp, paddingStart: num, marginTop: -tmp };
obj = { height: tmp, backgroundColor: null };
if (arg1) {
let DIVIDER_BACKGROUND = ThemesDefault.colors.BORDER_SUBTLE;
} else {
DIVIDER_BACKGROUND = result2.DIVIDER_BACKGROUND;
}
obj[1] = DIVIDER_BACKGROUND;
obj[1] = obj;
return obj;
});
const result = require("set").fileFinishedImporting("design/components/TableRow/native/TableRowDivider.native.tsx");
export const TableRowDivider = function TableRowDivider(adjustSpacingForIcon) {
let flag = adjustSpacingForIcon.adjustSpacingForIcon;
if (flag === undefined) {
flag = false;
}
let obj = map;
const tmp2 = callback(flag, useIsMobileVisualRefreshExperimentEnabledDefault("TableRowDivider"), obj.useToken(ThemesDefault.modules.mobile.TABLE_ROW_DIVIDER_PADDING));
obj = { style: tmp2.container, children: <View {...obj} /> };
obj = { style: tmp2.divider };
return <View style={tmp2.divider} />;
};