import React from 'react';
/**
*
* A common component to share entities via email.
*
* 
*
* Simple:
*
* @example
*
* import ShareViaEmail from "@bigbinary/neeto-molecules/ShareViaEmail";
* import Scrollable from "@bigbinary/neeto-molecules/Scrollable";
*
* const ShareViaEmail = () => {
* const handleSubmit = () => {
* //api call
* };
*
* return (
*
*
*
* );
* };
* export default ShareViaEmail;
* @endexample
* With children and EmailPreview props:
*
* @example
*
* import {useState} from "react";
* import ShareViaEmail from "@bigbinary/neeto-molecules/ShareViaEmail";
* import Scrollable from "@bigbinary/neeto-molecules/Scrollable";
*
* const ShareViaEmail = () => {
* const [startButtonText, setStartButtonText] = useState("")
*
* const handleSubmit = () => {
* //custom validations and API call
* };
*
* const StartButtonText => (
* //input field
* )
*
* return (
*
*
*
* {other child components}
*
*
* );
* };
* export default ShareViaEmail;
* @endexample
*/
declare const ShareViaEmail: React.FC<{
backToUrl?: string;
children?: React.ReactNode;
description?: string;
disableReplyTo?: boolean;
showSendFromField?: boolean;
defaultValues?: {
sendFromEmail?: string;
replyToEmail?: string;
emailSubject?: string;
emailBody?: string;
actionButtonText?: string;
};
handleSubmit: (data: {
sendFromEmail: string;
replyToEmail: string;
notifyEmails: {
label: string;
value: string;
valid: boolean;
}[];
emailSubject: string;
emailBody: string;
isSendLaterEnabled: boolean;
sendEmailDatetime: string;
category: string;
actionButtonText: string;
}) => void;
showVideoEmbedInEditor?: boolean;
title?: string;
}>;
export { ShareViaEmail as default };