"use client"

import type { ApiTokenAgendaScope } from "@/lib/api/types"
import type { WebhookAgendaScope } from "@/lib/mail-automation/webhook-config"
import { WebhookAgendaScopeEditor } from "@/components/gmail/settings/automation/webhook-agenda-scope-editor"

export function ApiTokenAgendaScopeEditor({
  scope,
  onChange,
  enabled,
  className,
}: {
  scope: ApiTokenAgendaScope
  onChange: (scope: ApiTokenAgendaScope) => void
  enabled: boolean
  className?: string
}) {
  return (
    <WebhookAgendaScopeEditor
      scope={scope as WebhookAgendaScope}
      onChange={onChange}
      enabled={enabled}
      className={className}
    />
  )
}
