mirror of
https://github.com/langgenius/dify.git
synced 2026-09-07 18:36:02 +08:00
Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
19 lines
534 B
TypeScript
19 lines
534 B
TypeScript
'use client'
|
|
import { ToastHost } from '@langgenius/dify-ui/toast'
|
|
import * as React from 'react'
|
|
import ConfigurationView from './configuration-view'
|
|
import { useConfiguration } from './hooks/use-configuration'
|
|
import { appConfigurationToastManager } from './toast'
|
|
|
|
const Configuration = () => {
|
|
const viewModel = useConfiguration()
|
|
return (
|
|
<>
|
|
<ToastHost manager={appConfigurationToastManager} offset={{ top: 60 }} />
|
|
<ConfigurationView {...viewModel} />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default React.memo(Configuration)
|