mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 17:30:52 +00:00
- 合并 adminActions、teacherActions 和 guestActions 到统一的 userActions - 创建通用的用户配置和页面组件 - 优化用户表单验证逻辑 - 调整布局和页面结构
10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
import ProtectedLayout from "./ProtectedLayout";
|
|
|
|
interface GenericLayoutProps {
|
|
children: React.ReactNode;
|
|
allowedRoles: string[];
|
|
}
|
|
|
|
export default function GenericLayout({ children, allowedRoles }: GenericLayoutProps) {
|
|
return <ProtectedLayout allowedRoles={allowedRoles}>{children}</ProtectedLayout>;
|
|
}
|