import React from "react";
import { useTranslation } from "react-i18next";
import { FlatList, RefreshControl, Text } from "react-native";
import { Card } from "react-native-paper";
import JobNotesItem from "../job-notes-item/job-notes-item.component";
export default function JobNotes({ job, loading, refetch }) {
const { t } = useTranslation();
if (!job) {
Job is not defined.
;
}
const onRefresh = async () => {
return refetch();
};
if (job.notes.length === 0)
return (
{t("jobdetail.labels.nojobnotes")}
);
return (
}
style={{ flex: 1 }}
data={job.notes}
renderItem={(object) => }
/>
);
}