2023-09-20 04:50:26 +00:00
|
|
|
import type { CalloutLinkProps } from "design-system";
|
|
|
|
|
import { Callout } from "design-system";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import {
|
|
|
|
|
PARTNER_PROGRAM_CALLOUT,
|
|
|
|
|
PARTNER_PROGRAM_CALLOUT_LINK,
|
|
|
|
|
createMessage,
|
|
|
|
|
} from "@appsmith/constants/messages";
|
|
|
|
|
|
2023-10-11 07:35:24 +00:00
|
|
|
interface PartnerProgramCalloutProps {
|
2023-09-20 04:50:26 +00:00
|
|
|
email: string;
|
|
|
|
|
onClose: () => void;
|
2023-10-11 07:35:24 +00:00
|
|
|
}
|
2023-09-20 04:50:26 +00:00
|
|
|
|
|
|
|
|
export default function PartnerProgramCallout(
|
|
|
|
|
props: PartnerProgramCalloutProps,
|
|
|
|
|
) {
|
|
|
|
|
const links: CalloutLinkProps[] = [
|
|
|
|
|
{
|
|
|
|
|
children: createMessage(PARTNER_PROGRAM_CALLOUT_LINK),
|
|
|
|
|
to: "https://www.appsmith.com/partner-program",
|
|
|
|
|
endIcon: "share-box-line",
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Callout
|
|
|
|
|
data-testid="partner-program-callout"
|
|
|
|
|
isClosable
|
|
|
|
|
links={links}
|
|
|
|
|
onClose={props.onClose}
|
|
|
|
|
>
|
|
|
|
|
{createMessage(PARTNER_PROGRAM_CALLOUT, props.email)}
|
|
|
|
|
</Callout>
|
|
|
|
|
);
|
|
|
|
|
}
|