feat:update icon

This commit is contained in:
Supra4E8C
2025-12-13 00:51:01 +08:00
parent bcf82252ea
commit a7b77ffa25
16 changed files with 370 additions and 124 deletions

View File

@@ -1,4 +1,5 @@
import type { PropsWithChildren, ReactNode } from 'react';
import { IconX } from './icons';
interface ModalProps {
open: boolean;
@@ -23,7 +24,7 @@ export function Modal({ open, title, onClose, footer, width = 520, children }: P
<div className="modal-header">
<div className="modal-title">{title}</div>
<button className="modal-close" onClick={onClose} aria-label="Close">
×
<IconX size={18} />
</button>
</div>
<div className="modal-body">{children}</div>