import { useEffect, useMemo } from 'react'; import { ControllerRenderProps, useFormContext } from 'react-hook-form'; import { Checkbox } from '@/components/ui/checkbox'; import { Input } from '@/components/ui/input'; import { cn } from '@/lib/utils'; /* ---------------- Token Field ---------------- */ export type ConfluenceTokenFieldProps = ControllerRenderProps & { fieldType: 'username' | 'token'; placeholder?: string; disabled?: boolean; }; const ConfluenceTokenField = ({ fieldType, value, onChange, placeholder, disabled, ...rest }: ConfluenceTokenFieldProps) => { return (
This connector will index all pages the provided credentials have access to.
)} {mode === 'space' && (The Confluence space key to index.
The Confluence page ID to index.