import Dinero from "dinero.js";
import {
Card,
CardItem,
H3,
Text,
View,
Container,
Content,
} from "native-base";
import React from "react";
import { StyleSheet, RefreshControl } from "react-native";
export default function JobTombstone({ job, loading, refetch }) {
if (!!!job) {
Job is not defined.
;
}
const onRefresh = async () => {
return refetch();
};
return (
}
>
{job.status}
{job.ins_co_nm || ""}
{job.clm_no || ""}
{job.ded_status || ""}
{Dinero({ amount: (job.ded_amt || 0) * 100 }).toFormat()}
{`${job.ownr_fn || ""} ${
job.ownr_ln || ""
}${job.ownr_co_nm || ""}`}
{job.ownr_ph1 || ""}
{`${job.v_model_yr || ""} ${
job.v_make_desc || ""
} ${job.v_model_desc || ""} ${job.v_vin || ""}`}
);
}
const localStyles = StyleSheet.create({
ins_card: {
flexDirection: "row",
justifyContent: "space-between",
},
status: {
textAlign: "center",
flexDirection: "row",
justifyContent: "center",
},
owner_card: {
flexDirection: "row",
justifyContent: "space-around",
},
});