24 lines
428 B
TypeScript
24 lines
428 B
TypeScript
import { StyleSheet, View } from "react-native";
|
|
import { ThemedText } from "./themed-text";
|
|
|
|
interface NotFoundProps {
|
|
text?: string;
|
|
}
|
|
|
|
const NotFound = ({text = "Not Found"}: NotFoundProps) => {
|
|
return (
|
|
<View style={styles.notFound}>
|
|
<ThemedText>{text}</ThemedText>
|
|
</View>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
notFound: {
|
|
padding: 15,
|
|
textAlign: "center"
|
|
},
|
|
});
|
|
|
|
|
|
export default NotFound; |