This commit refactors the document actions and metadata components to enhance code clarity and maintainability. Key changes include:
- Simplified the hook by removing unnecessary type assertions.
- Streamlined the rendering logic in the component by consolidating JSX elements.
- Updated dependencies in the hook to ensure proper reactivity.
These adjustments aim to improve the overall structure and performance of the document management features.