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

export interface IViewUserRecordsProps {
  recordId: string;
}

const ViewRecord = ({ recordId }: IViewUserRecordsProps) => {
  //enter the correct import path for useCCIncomingRecords
  const { recordsResponse } = useOutgoingRecords();
  const outgoingRecords = recordsResponse?.items || [];
  const selectedRecord = outgoingRecords.find(
    (outgoingRecords: { id: string }) => outgoingRecords.id === recordId
  );
  return (
    selectedRecord && (
      <div>
        <div className="w-full my-2">
          <h1>hellow</h1>
        </div>
      </div>
    )
  );
};

export default ViewRecord;
