'use client'

import type { Editor } from '@tiptap/react'
import { useLinkPopover } from '@admin/hooks/content-editor/use-link-popover'
import { LinkMain } from './link-main'

export function LinkContent({ editor }: { editor?: Editor | null }) {
  const linkPopover = useLinkPopover({
    editor
  })

  return <LinkMain {...linkPopover} />
}
