Files
TERES_web_frontend/src/hooks/useSnackbar.ts
guangfei.zhao a1282de74f feat: add new interfaces, services, and utilities for API integration
refactor: reorganize type definitions and improve type safety

build: add lodash and @types/lodash as dependencies

chore: update tsconfig and vite config for path aliases

style: improve code organization and add documentation comments

fix: correct type usage in LanguageSwitcher component

perf: implement snackbar provider for global notifications

test: add new test interfaces and utility functions

ci: update pnpm-lock.yaml with new dependencies
2025-10-10 15:09:04 +08:00

12 lines
305 B
TypeScript

import { useSnackbar } from '@/components/Provider/SnackbarProvider';
// 简化的 hooks
export const useMessage = () => {
const { showMessage } = useSnackbar();
return showMessage;
};
export const useNotification = () => {
const { showNotification } = useSnackbar();
return showNotification;
};