mirror of
https://github.com/langgenius/dify.git
synced 2026-07-15 17:37:38 +08:00
17 lines
510 B
TypeScript
17 lines
510 B
TypeScript
'use client'
|
|
import type { FC } from 'react'
|
|
import type { UpdateFromGitHubPayload } from '../types'
|
|
import * as React from 'react'
|
|
import InstallFromGitHub from '../install-plugin/install-from-github'
|
|
|
|
type Props = Readonly<{
|
|
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)
|