expectedFeeBox.tsx 1016 B

12345678910111213141516171819202122232425262728
  1. import { View, Text, StyleProp, ViewStyle } from 'react-native';
  2. import React from 'react';
  3. interface ExpectedFeeBoxProps {
  4. extendedStyle?: StyleProp<ViewStyle>;
  5. }
  6. // SearchPage: React.FC<SearchPageProps>
  7. //this is a reuseable component "預計充電費用" 灰色格仔 on Charging Page
  8. const ExpectedFeeBox: React.FC<ExpectedFeeBoxProps> = ({ extendedStyle }) => {
  9. return (
  10. <View
  11. className=" min-h-[20px] border-slate-300 rounded-2xl justify-center"
  12. style={[{ borderWidth: 1 }, extendedStyle]}
  13. >
  14. <View className="flex-row items-center justify-between">
  15. <View>
  16. <Text className="text-lg">預計充電費用</Text>
  17. <Text className="text-base color-[#888888]">
  18. 按每度電結算: 50 kWh
  19. </Text>
  20. </View>
  21. <Text className="text-3xl">HK$ 175</Text>
  22. </View>
  23. </View>
  24. );
  25. };
  26. export default ExpectedFeeBox;