2024-06-29 17:58:27 +08:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2024-07-18 11:58:42 +08:00
|
|
|
import { MetadataProvider, CollaboratorsProvider, RecordDetailsProvider } from './hooks/index';
|
2024-06-29 17:58:27 +08:00
|
|
|
import { Table } from './components/index';
|
|
|
|
|
2024-07-03 17:04:30 +08:00
|
|
|
const SeafileMetadata = ({ ...params }) => {
|
2024-06-29 17:58:27 +08:00
|
|
|
|
|
|
|
return (
|
|
|
|
<MetadataProvider { ...params }>
|
2024-07-03 17:04:30 +08:00
|
|
|
<CollaboratorsProvider >
|
2024-06-29 17:58:27 +08:00
|
|
|
<RecordDetailsProvider>
|
|
|
|
<Table />
|
|
|
|
</RecordDetailsProvider>
|
|
|
|
</CollaboratorsProvider>
|
|
|
|
</MetadataProvider>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
SeafileMetadata.propTypes = {
|
|
|
|
collaborators: PropTypes.array,
|
|
|
|
collaboratorsCache: PropTypes.object,
|
|
|
|
updateCollaboratorsCache: PropTypes.func,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default SeafileMetadata;
|