import React from "react"; import { View, Text, TextInput, TouchableOpacity, ScrollView, StyleSheet, Dimensions, } from "react-native"; import { useNavigation, NavigationProp } from "@react-navigation/native"; import AppLayout from "@layouts/AppLayout"; import { Ionicons } from "@expo/vector-icons"; // hoặc icon_2025 nếu bạn có icon font riêng import CreateBuildpc from "@components/buildpc/CreateBuildpc"; // component con bạn tự tạo const { width } = Dimensions.get("window"); import Octicons from "@expo/vector-icons/Octicons"; export default function Buildpc() { const navigation = useNavigation>(); return ( {/* Breadcrumb */} Tạo máy tính riêng của bạn {/* Buttons Bắt đầu/So sánh */} navigation?.navigate("buildpc")} > Bắt đầu tạo navigation?.navigate("comparebuildpc")} > So sánh giá tại các cửa hàng {/* Action Bar */} {/* Share link */} {/* Đặt tên */} Đặt tên: {/* Buttons */} {/* Buildpc Content */} ); } function ActionButton({ icon, label }: { icon: string; label: string }) { return ( {label} ); } const styles = StyleSheet.create({ container: { paddingHorizontal: 10, }, breadcrumb: { flexDirection: "row", alignItems: "center", paddingVertical: 12, flexWrap: "wrap", }, breadcrumbItem: { flexDirection: "row", alignItems: "center", marginRight: 8, }, text: { color: "#000", }, icon: { marginRight: 5, }, angle: { marginLeft: 12, color: "#888", }, actionBar: { marginTop: 12, backgroundColor: "#fff", borderRadius: 8, marginBottom: 10, }, inputBox: { flexDirection: "row", alignItems: "center", borderColor: "#ccc", borderWidth: 1, borderRadius: 8, height: 48, flex: 1, paddingHorizontal: 10, width: width - 20, marginBottom: 10, }, input: { flex: 1, height: "100%", paddingHorizontal: 10, }, iconAction: { marginRight: 6, color: "#888", }, buttonGroup: { flexDirection: "row", flex: 1, justifyContent: "space-between", }, actionButton: { flex: 1, height: 35, borderWidth: 1, borderColor: "#ccc", borderRadius: 8, flexDirection: "row", alignItems: "center", justifyContent: "center", marginHorizontal: 2, backgroundColor: "#fff", }, buttonWrapper: { backgroundColor: "#fff", flexDirection: "row", gap: 10, alignItems: "center", }, primaryButton: { backgroundColor: "#5B21B6", padding: 10, borderRadius: 4, }, primaryButtonText: { color: "#fff", fontWeight: "bold", textAlign: "center", }, secondaryButton: { backgroundColor: "#F5F5F5", padding: 10, borderRadius: 4, }, secondaryButtonText: { color: "#666", fontWeight: "bold", }, });