feat: chat presets (experimental)

This commit is contained in:
josc146
2023-06-25 00:07:14 +08:00
parent 08cf09416a
commit db67f30082
15 changed files with 987 additions and 212 deletions

View File

@@ -0,0 +1,17 @@
import commonStore from '../stores/commonStore';
import { ToastContainer } from 'react-toastify';
export const CustomToastContainer = () =>
<ToastContainer
style={{ width: '350px' }}
position="top-center"
autoClose={4000}
pauseOnHover={true}
hideProgressBar={true}
newestOnTop={true}
closeOnClick={false}
rtl={false}
pauseOnFocusLoss={false}
draggable={false}
theme={commonStore.settings.darkMode ? 'dark' : 'light'}
/>;