Nylas components are currently in private preview. They might contain bugs or errors, and might change considerably before they reach general availability (GA).
SendNotetaker component
The SendNotetaker component provides a user-facing option to send a Notetaker bot to a meeting by entering its URL. This is useful when users want to record a meeting that’s already in progress.
You need to set up a provider before you can use the SendNotetaker component.
Using the SendNotetaker component
import React, { useEffect } from"react";
import { SendNotetaker, provider as useProvider } from"@nylas/react";
// import '@nylas/react/style.css' // to style the component
functionApp() {
constprovider=useProvider();
useEffect(() => {
// Necessary to set before using the component
provider.setAccessToken("nylas-access-token");
provider.setApiUrl("eu"); // can be "us" or "eu", defaults to "us"
One or more additional class names for the container element.
onError?
(error: any) => void
A callback generated when an error occurs during the send operation.
onSend?
(data: Notetaker, resetForm: () => ...) => void
A callback generated after a successful send operation.
showAdvancedSettings?
boolean
Display the Advanced Settings section.
showNameInput?
boolean
Display the name input field.
sendNotetakerStore
This interface describes a Zustand store, an advanced state management React solution. This is intended for advanced use only – the Notetaker components will work without using this store directly.
The interface for the SendNotetaker component state store. sendNotetakerStore manages all form data and UI state information for the component.