feat: initialize new React application structure with TypeScript, ESLint, and Prettier configurations, while removing legacy files and adding new components and pages for enhanced functionality

This commit is contained in:
Supra4E8C
2025-12-07 11:32:31 +08:00
parent 8e4132200d
commit 450964fb1a
144 changed files with 14223 additions and 21647 deletions

View File

@@ -0,0 +1,20 @@
import { useNotificationStore } from '@/stores';
export function NotificationContainer() {
const { notifications, removeNotification } = useNotificationStore();
if (!notifications.length) return null;
return (
<div className="notification-container">
{notifications.map((notification) => (
<div key={notification.id} className={`notification ${notification.type}`}>
<div className="message">{notification.message}</div>
<button className="close-btn" onClick={() => removeNotification(notification.id)}>
×
</button>
</div>
))}
</div>
);
}