chore: 通過 ESM 引入外部脚本

* React, ReactDOM 和 CryptoES
* 集中在 Imports.ts 中
* 向每一個 JSX 添加 React 的 import
This commit is contained in:
CrescentLeaf
2025-09-06 14:32:56 +08:00
parent b0c67da340
commit c5d1f11017
13 changed files with 104 additions and 68 deletions

View File

@@ -1,3 +1,5 @@
import { React } from '../Imports.ts'
export default function Avatar({ src, text, icon = 'person', ...props } = {}) {
return (
src ? <mdui-avatar {...props}>