2025-11-27 20:42:46 +08:00
|
|
|
|
/**
|
2025-11-29 23:00:48 +08:00
|
|
|
|
* Asset Browser - 资产浏览器
|
|
|
|
|
|
* 包装 ContentBrowser 组件,保持向后兼容
|
2025-11-27 20:42:46 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2025-11-29 23:00:48 +08:00
|
|
|
|
import { ContentBrowser } from './ContentBrowser';
|
2025-10-15 09:34:44 +08:00
|
|
|
|
|
|
|
|
|
|
interface AssetBrowserProps {
|
2025-11-29 23:00:48 +08:00
|
|
|
|
projectPath: string | null;
|
|
|
|
|
|
locale: string;
|
|
|
|
|
|
onOpenScene?: (scenePath: string) => void;
|
2025-10-15 09:34:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-04 18:29:28 +08:00
|
|
|
|
export function AssetBrowser({ projectPath, locale, onOpenScene }: AssetBrowserProps) {
|
2025-10-15 09:34:44 +08:00
|
|
|
|
return (
|
2025-11-29 23:00:48 +08:00
|
|
|
|
<ContentBrowser
|
|
|
|
|
|
projectPath={projectPath}
|
|
|
|
|
|
locale={locale}
|
|
|
|
|
|
onOpenScene={onOpenScene}
|
|
|
|
|
|
/>
|
2025-11-02 23:50:41 +08:00
|
|
|
|
);
|
2025-10-15 09:34:44 +08:00
|
|
|
|
}
|