Files
calendar/packages/app-store/office365video/components/AccountDialog.tsx
T
f8be2b3833 feat: added office 365 video to conferencing atoms (#18067)
* feat: added office 365 video to conferencing atoms

* added documentation for conferencing atoms

* added props table to the documentation

---------

Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
2024-12-16 16:20:59 +02:00

39 lines
1.1 KiB
TypeScript

import type { DialogProps } from "@calcom/ui";
import { Button } from "@calcom/ui";
import { Dialog, DialogClose, DialogContent, DialogFooter } from "@calcom/ui";
export function AccountDialog(
props: DialogProps & {
handleSubmit: () => void;
}
) {
return (
<Dialog name="Account check" open={props.open} onOpenChange={props.onOpenChange}>
<DialogContent
type="creation"
title="Connecting with MS Teams requires a work/school Microsoft account."
description="If you continue with a personal account you will receive an error">
<DialogFooter showDivider className="mt-6">
<>
<DialogClose
type="button"
color="secondary"
tabIndex={-1}
onClick={() => {
props.onOpenChange?.(false);
}}>
Cancel
</DialogClose>
<Button type="button" onClick={props.handleSubmit}>
Continue
</Button>
</>
</DialogFooter>
</DialogContent>
</Dialog>
);
}
export default AccountDialog;