import { View } from "react-native"
import { Text } from "react-native-paper"
import { SafeAreaView } from "react-native-safe-area-context"
import { ExternalLink } from "@/presentation/react-native/ui/ExternalLink"
import { getVersion } from "@/utils/version"
export interface AboutProps {
actionButton: React.ReactNode
footer?: React.ReactNode
}
export const About: React.FC<AboutProps> = (props) => {
const { actionButton, footer } = props
const version = getVersion()
return (
<SafeAreaView
style={{
flex: 1,
paddingHorizontal: 20,
justifyContent: "center",
}}
>
<View
alignItems: "center",
marginVertical: 20,
<Text
fontWeight: "bold",
fontSize: 28,
textAlign: "center",
Habits Tracker
</Text>
marginTop: 6,
fontSize: 18,
To perform at work and in everyday life.
fontSize: 16,
v{version}
</View>
<Text variant="bodyLarge" style={{ textAlign: "center" }}>
<ExternalLink href="https://unistra.fr" style={{ color: "#006CFF" }}>
Université de Strasbourg
</ExternalLink>
BUT Informatique - IUT Robert Schuman
P61 Mobile Development
{footer}
{actionButton}
</SafeAreaView>
)