
import { useInternalIncomingRecords } from "@/record-management/components/hooks/useInternalIncomingRecords";


export interface IViewUserRecordsProps {
  recordId: string;
}

const ViewRecord = ({ recordId }: IViewUserRecordsProps) => {
    //enter the correct import path for useCCIncomingRecords
    // const { incomingRecords} = useIncomingRecords();
    const { internalRecords} = useInternalIncomingRecords(
      {  pageIndex: 0,
  pageSize: 10,}
    )
  const selectedRecord = internalRecords.find(
    (incomingRecords: { id: string }) => incomingRecords.id === recordId
  );


  return (
    selectedRecord && (
      <div>
        <div className="w-full my-2">
          {/* <FileList attachments={fetchAttachments} showDelete={false} /> */}
        </div>
      </div>
    )
  );
};

export default ViewRecord;
