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
Section titled “Using the SendNotetaker component”Advanced settings...
import React, { useEffect } from "react";import { SendNotetaker, provider as useProvider } from "@nylas/react";// import '@nylas/react/style.css' // to style the component
function App() {const provider = 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"}, []);
return ( <SendNotetaker showNameInput={true} showAdvancedSettings={false} onSend={(data, resetForm) => { console.log("Notetaker sent:", data); // Optionally reset the form after sending resetForm(); }} onError={(error) => console.error("Send error:", error)} />);}
export default App;SendNotetaker properties
Section titled “SendNotetaker properties”| Property | Type | Description |
|---|---|---|
className? | string | 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. |