57 lines
2.1 KiB
TypeScript
57 lines
2.1 KiB
TypeScript
// Metro module 14088 (f14089).
|
|
import { StyleSheet, View } from "react-native";
|
|
import { createStyles } from "../../../../design/components/Styles/native/createStyles";
|
|
import ReanimatedRexport, { useAnimatedStyle } from "../../../reanimated/ReanimatedRexport";
|
|
import * as _timing from "../../../../design/animation/reanimated/timing/timing";
|
|
import * as _timingPresets from "../../../../design/animation/reanimated/timing/timingPresets";
|
|
import Module4611 from "../../../../_bundle/Module4611";
|
|
import BountiesEndCardPressableCta from "./BountiesEndCardPressableCta";
|
|
let __initData;
|
|
const useStyles = createStyles(() => ({
|
|
container: {
|
|
position: "absolute",
|
|
top: 0,
|
|
left: 0,
|
|
right: 0,
|
|
bottom: 0,
|
|
justifyContent: "center",
|
|
alignItems: "center"
|
|
},
|
|
backdropTint: {
|
|
...StyleSheet.absoluteFillObject,
|
|
backgroundColor: "rgba(241, 251, 169, 0.15)"
|
|
},
|
|
backdropGradient: {
|
|
...StyleSheet.absoluteFillObject
|
|
}
|
|
}));
|
|
__initData = {
|
|
code: "function BountiesModalEndCardTsx1(){const{withTiming,visible,timingStandard}=this.__closure;return{opacity:withTiming(visible?1:0,timingStandard)};}"
|
|
};
|
|
export default function BountiesModalEndCard(props) {
|
|
const bounty = props.bounty;
|
|
let visible2 = props.visible;
|
|
const visible = visible2;
|
|
const sourceQuestContent = props.sourceQuestContent;
|
|
const styles = useStyles();
|
|
const y = () => ({
|
|
opacity: _timing.withTiming(visible ? 1 : 0, _timingPresets.timingStandard)
|
|
});
|
|
y.__closure = {
|
|
withTiming: _timing.withTiming,
|
|
visible,
|
|
timingStandard: _timingPresets.timingStandard
|
|
};
|
|
y.__workletHash = 15062259404736;
|
|
y.__initData = __initData;
|
|
const animatedStyle = useAnimatedStyle(y);
|
|
if (visible) {
|
|
visible2 = <ReanimatedRexport.View style={[styles.container, animatedStyle]} pointerEvents="box-none">
|
|
<View style={styles.backdropTint} />
|
|
<Module4611 colors={["rgba(0, 0, 0, 0.60)", "rgba(0, 0, 0, 1)"]} locations={[0, 0.841]} style={styles.backdropGradient} />
|
|
<BountiesEndCardPressableCta bounty={bounty} sourceQuestContent={sourceQuestContent} />
|
|
</ReanimatedRexport.View>;
|
|
}
|
|
return visible2;
|
|
};
|