Add files via upload

This commit is contained in:
Win8.1VMUser 2025-08-19 08:33:03 +02:00 • committed by GitHub
parent 029c1ee51b
commit a73809a2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,39 @@
import { TouchableOpacity, Text, Image, View } from "@vendetta/ui/components/General";
import { createThemedStyleSheet } from "@vendetta/metro/common/stylesheet";
import { semanticColors } from "@vendetta/ui";
const stylesheet = createThemedStyleSheet({
container: {
flexDirection: "row",
alignItems: "center",
},
image: {
marginLeft: 5,
marginRight: 5,
width: 25,
height: 25,
borderRadius: 100,
},
label: {
color: semanticColors.HEADER_PRIMARY,
},
labelRemove: {
color: semanticColors.TEXT_WARNING,
},
});
export default ({ imageSource, onImagePress, label, labelRemove = "REMOVE", onRemove }) => {
return (
<>
<View style={stylesheet.container}>
<TouchableOpacity onPress={onRemove}>
<Text style={stylesheet.labelRemove}>{labelRemove}</Text>
</TouchableOpacity>
<TouchableOpacity onPress={onImagePress}>
<Image style={[stylesheet.image]} source={imageSource} />
</TouchableOpacity>
<Text style={stylesheet.label}>{label}</Text>
</View>
</>
);
};