mirror of
https://github.com/langgenius/dify.git
synced 2026-07-22 04:25:29 -04:00
a84c2d36a3
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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)
|