36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
// Metro module 12835 (f12836).
|
|
import { Image as Image2, View } from "react-native";
|
|
import { createStyles } from "../../../../design/components/Styles/native/createStyles";
|
|
import Module712 from "../../../../_bundle/Module712";
|
|
import { Text } from "../../../../design/components/Text/native/Text";
|
|
import { Button } from "../../../../design/components/Button/native/Button.native";
|
|
const useStyles = createStyles({
|
|
container: {
|
|
padding: 16,
|
|
alignItems: "center",
|
|
backgroundColor: Module712.colors.BACKGROUND_BASE_LOW
|
|
},
|
|
title: {
|
|
textAlign: "center",
|
|
marginBottom: 8
|
|
},
|
|
description: {
|
|
textAlign: "center",
|
|
lineHeight: 18,
|
|
marginBottom: 24
|
|
},
|
|
image: {
|
|
marginBottom: 24
|
|
}
|
|
});
|
|
export default function NUFActionSheetTemplate(props) {
|
|
const { title, description, imageSrc, onCTAPress, CTALabel } = props;
|
|
const styles = useStyles();
|
|
return <View style={styles.container}>
|
|
<Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{title}</Text>
|
|
<Text style={styles.description} variant="text-sm/medium" color="text-default">{description}</Text>
|
|
<Image2 source={imageSrc} style={styles.image} />
|
|
<Button text={CTALabel} size="md" onPress={onCTAPress} grow />
|
|
</View>;
|
|
};
|