import { useContext } from "react"; import { View, Text, StyleSheet, type StyleProp, type ViewStyle, type TextStyle } from "react-native"; import WordContext from "./WordContext"; import { colors } from "./colors"; export interface WordProps { containerStyle?: StyleProp; textStyle?: StyleProp; } export default function Word({ containerStyle, textStyle }: WordProps) { const { wordHeight, text, wordGap } = useContext(WordContext); return ( {text} ); } const styles = StyleSheet.create({ container: { marginTop: 0, backgroundColor: colors.white, borderColor: colors.grey, borderWidth: 2, borderRadius: 8, justifyContent: "center", paddingHorizontal: 10, }, text: { fontSize: 16, }, });