blob: bcde943ba60fb67cb14fdfbc6d1d63fc551bc388 [file] [log] [blame]
22301014b1477f72025-06-07 22:54:40 +08001import React from 'react';
2import ProtectedRoute from './ProtectedRoute';
3
4const withProtect = (Component: React.ComponentType) => {
5 return React.createElement(ProtectedRoute, {
6 children: React.createElement(Component)
7 });
8};
9
10export default withProtect;