48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <hello@stalw.art>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
|
|
*/
|
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
DialogDescription,
|
|
DialogFooter,
|
|
} from '@/components/ui/dialog';
|
|
import { Button } from '@/components/ui/button';
|
|
|
|
interface EnterpriseUpsellProps {
|
|
open: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
export function EnterpriseUpsell({ open, onClose }: EnterpriseUpsellProps) {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Dialog open={open} onOpenChange={(isOpen) => !isOpen && onClose()}>
|
|
<DialogContent>
|
|
<DialogHeader>
|
|
<DialogTitle>{t('enterprise.trialTitle')}</DialogTitle>
|
|
<DialogDescription>{t('enterprise.trialDescription')}</DialogDescription>
|
|
</DialogHeader>
|
|
<DialogFooter>
|
|
<Button variant="outline" onClick={onClose}>
|
|
{t('common.close')}
|
|
</Button>
|
|
<Button asChild>
|
|
<a href="https://license.stalw.art/trial" target="_blank" rel="noopener noreferrer">
|
|
{t('enterprise.trialButton')}
|
|
</a>
|
|
</Button>
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
}
|