16 lines
318 B
JavaScript
16 lines
318 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import FileSelection from './file-selection';
|
|
|
|
export default function Tables({ data }) {
|
|
if (data.length > 0) {
|
|
return <FileSelection options={data} />;
|
|
}
|
|
return <p>Selection loading...</p>;
|
|
}
|
|
|
|
Tables.propTypes = {
|
|
data: PropTypes.array,
|
|
};
|