'use client' import { Switch } from '@langgenius/dify-ui/switch' import { memo, useId } from 'react' import { useTranslation } from 'react-i18next' type AutomaticIncludeWorkspaceMembersSectionProps = { checked?: boolean loading: boolean onChange?: (checked: boolean) => void } function AutomaticIncludeWorkspaceMembersSection({ checked, loading, onChange, }: AutomaticIncludeWorkspaceMembersSectionProps) { const { t } = useTranslation() const labelId = useId() const descriptionId = useId() return (

{t(($) => $['accessRule.automaticallyIncludeWorkspaceMembers'], { ns: 'permission', })}

{t(($) => $['accessRule.automaticallyIncludeWorkspaceMembersDescription'], { ns: 'permission', })}

) } export default memo(AutomaticIncludeWorkspaceMembersSection)