* feat: pnpm new * Refactor build and release workflows, update dependencies Switch build scripts and workflows from npm to pnpm, update build and artifact paths, and simplify release workflow by removing version detection and changelog steps. Add new dependencies (silk-wasm, express, ws, node-pty-prebuilt-multiarch), update exports in package.json files, and add vite config for napcat-framework. Also, rename manifest.json for framework package and fix static asset copying in shell build config.
22 lines
419 B
TypeScript
22 lines
419 B
TypeScript
import { Toaster as HotToaster } from 'react-hot-toast';
|
|
|
|
import { useTheme } from '@/hooks/use-theme';
|
|
|
|
export const Toaster = () => {
|
|
const { isDark } = useTheme();
|
|
|
|
return (
|
|
<HotToaster
|
|
toastOptions={{
|
|
style: {
|
|
borderRadius: '20px',
|
|
background: isDark ? '#333' : '#fff',
|
|
color: isDark ? '#fff' : '#333',
|
|
},
|
|
}}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Toaster;
|