function DownloadCSV(props) {
  const data = [transpose(props.array)];
  return (
    <CSVLink data={data} filename={props.fileName}>
      <NHSButton>Export To CSV</NHSButton>
    </CSVLink>
  );
}
/**
 * Converts an array of arrays into .csv file
 * @param props.array of arrays used to visualise data
 * @returns a download link for .csv file containing data in csv format
 */
Converts an array of arrays into .csv file
@param props.array of arrays used to visualise data
@returns a download link for .csv file containing data in csv format
Converts an array of arrays into . csv file @param props . array of arrays used to visualise data @returns a download link for . csv file containing data in csv format
function DownloadCSV(props) {
  const data = [transpose(props.array)];
  return (
    <CSVLink data={data} filename={props.fileName}>
      <NHSButton>Export To CSV</NHSButton>
    </CSVLink>
  );
}
function DownloadCSV ( props ) { const data = [ transpose ( props . array ) ] ; return ( < CSVLink data = { data } filename = { props . fileName } > < NHSButton > Export To CSV < / NHSButton > < / CSVLink > ) ; }
Converts an array of arrays into .csv file
 @param props.array of arrays used to visualise data
 @returns a download link for .csv file containing data in csv format
Converts an array of arrays into . csv file @param props . array of arrays used to visualise data @returns a download link for . csv file containing data in csv format