Files
memind/ops/src/components/AdminLayout.tsx
T
john 9b4a25799f Add smart ACK provider for WeChat MP replies
Replace fixed ackText with a rule-based AckProvider that picks
response templates by message type and intent (translate, summary,
rewrite, poster, ppt, mindmap, code, search, schedule). Pure sync,
zero I/O, auto-falls back to config.ackText on any error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 15:19:03 +08:00

39 lines
960 B
TypeScript

import { NavLink, Outlet } from 'react-router-dom';
const links = [
{ to: '/admin', label: '概览', end: true },
{ to: '/admin/users', label: '用户管理' },
{ to: '/admin/billing', label: '账单记录' },
{ to: '/admin/wechat', label: '服务号管理' },
];
export function AdminLayout() {
return (
<div className="layout">
<header>
<h1></h1>
<p style={{ color: '#68716c' }}></p>
</header>
<nav className="nav">
<NavLink
to="/"
style={{ opacity: 0.6 }}
>
</NavLink>
{links.map((link) => (
<NavLink
key={link.to}
to={link.to}
end={link.end}
className={({ isActive }) => (isActive ? 'active' : undefined)}
>
{link.label}
</NavLink>
))}
</nav>
<Outlet />
</div>
);
}