import React from 'react'; import { cn } from '../../utils/cn'; import { getWindowDragHandleClassname } from '../const'; import type { WindowFrameProps } from '../WindowFrame'; import { MacOSWindowController } from './MacOSWindowController'; export const MacOSWindowFrame = ({ className, controller, title, children, onToggleMaximize, ref, ...props }: WindowFrameProps) => { return (
{ onToggleMaximize?.(); }} > {controller ?? }

{title}

{/* 占位,保持标题居中 */}
{children}
); };