21 lines
509 B
TypeScript
21 lines
509 B
TypeScript
import React from "react";
|
|
import { Text, View } from "react-native";
|
|
import styles from "../../style/NetDetailModal.styles";
|
|
|
|
interface NotesSectionProps {
|
|
ghiChu?: string;
|
|
}
|
|
|
|
export const NotesSection: React.FC<NotesSectionProps> = ({ ghiChu }) => {
|
|
if (!ghiChu) return null;
|
|
|
|
return (
|
|
<View style={styles.infoCard}>
|
|
<View style={styles.infoRow}>
|
|
<Text style={styles.infoLabel}>Ghi chú</Text>
|
|
<Text style={styles.infoValue}>{ghiChu}</Text>
|
|
</View>
|
|
</View>
|
|
);
|
|
};
|