Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

633 B
Raw Blame
'use client'

import PermissionGroupList from '../../permission-group-list'
import { useWorkspacePermissionGroups } from './hooks'

type PermissionPickerProps = {
  value: string[]
  onChange: (next: string[]) => void
  className?: string
  readonly?: boolean
}

const PermissionPicker = ({
  value,
  onChange,
  className,
  readonly = false,
}: PermissionPickerProps) => {
  const { groups } = useWorkspacePermissionGroups()

  return (
    <PermissionGroupList
      groups={groups}
      value={value}
      onChange={onChange}
      className={className}
      readonly={readonly}
    />
  )
}

export default PermissionPicker