import { Helmet, HelmetProvider } from "react-helmet-async"; import { ReactNode } from "react"; interface PageMetaProps { title?: string; description?: string; keywords?: string; image?: string; url?: string; } interface AppWrapperProps { children: ReactNode; } export function AppWrapper({ children }: AppWrapperProps) { return ( {children} ); } export default function PageMeta({ title = "DeepAudit", description = "基于AI的现代化代码质量分析和审查服务,提供全面的代码安全检测、性能分析和最佳实践建议。", keywords = "代码审计,代码质量,AI分析,安全检测,性能优化,代码规范", image = "/images/logo.png", url = window.location.href }: PageMetaProps) { const fullTitle = title === "DeepAudit" ? title : `${title} - DeepAudit`; return ( {/* 基本信息 */} {fullTitle} {/* Open Graph */} {/* Twitter Card */} {/* 其他 */} ); }