Files
discord-decomp/modules/nuf_channels/native/components/NUFTemplateV2.tsx
T
2026-11-01 12:12:55 +02:00

37 lines
1.2 KiB
TypeScript

// Metro module 12826 (f12827).
import { View } from "react-native";
import { createStyles } from "../../../../design/components/Styles/native/createStyles";
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"
},
title: {
textAlign: "center",
marginBottom: 8
},
description: {
textAlign: "center",
marginBottom: 46,
paddingLeft: 18,
paddingRight: 18
},
illustration: {
alignSelf: "stretch",
alignItems: "center",
marginBottom: 32
}
});
export default function NUFActionSheetTemplate(props) {
const { title, illustration, description, onCTAPress, CTALabel } = props;
const styles = useStyles();
return <View style={styles.container}>
<View style={styles.illustration}>{illustration}</View>
<Text style={styles.title} accessibilityRole="header" variant="heading-xl/bold">{title}</Text>
<Text style={styles.description} variant="text-md/medium">{description}</Text>
<Button text={CTALabel} onPress={onCTAPress} grow />
</View>;
};