Files
dify/web/app/components/plugins/update-plugin/from-github.tsx
zxhlyh 3c014f3ae5 Feat/plugins (#12547)
Co-authored-by: AkaraChen <akarachen@outlook.com>
Co-authored-by: Yi <yxiaoisme@gmail.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: kurokobo <kuro664@gmail.com>
Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.com>
2025-01-09 18:47:41 +08:00

27 lines
534 B
TypeScript

'use client'
import type { FC } from 'react'
import React from 'react'
import type { UpdateFromGitHubPayload } from '../types'
import InstallFromGitHub from '../install-plugin/install-from-github'
type Props = {
payload: UpdateFromGitHubPayload
onSave: () => void
onCancel: () => void
}
const FromGitHub: FC<Props> = ({
payload,
onSave,
onCancel,
}) => {
return (
<InstallFromGitHub
updatePayload={payload}
onClose={onCancel}
onSuccess={onSave}
/>
)
}
export default React.memo(FromGitHub)