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