2022-11-23 02:55:25 +00:00
|
|
|
import type { DialogProps } from "@calcom/ui";
|
|
|
|
import { Button, Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from "@calcom/ui";
|
2022-05-04 18:45:30 +00:00
|
|
|
|
|
|
|
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
|
|
|
|
|
|
export function AccountDialog(props: DialogProps) {
|
2022-05-13 12:20:50 +00:00
|
|
|
const mutation = useAddAppMutation("office365_video");
|
2022-05-04 18:45:30 +00:00
|
|
|
return (
|
|
|
|
<Dialog name="Account check" {...props}>
|
2022-11-23 02:55:25 +00:00
|
|
|
<DialogContent type="confirmation">
|
2022-05-04 18:45:30 +00:00
|
|
|
<DialogHeader
|
2022-05-13 12:20:50 +00:00
|
|
|
title="Connecting with MS Teams requires a work/school Microsoft account."
|
2022-05-04 18:45:30 +00:00
|
|
|
subtitle="If you continue with a personal account you will receive an error"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<DialogFooter>
|
|
|
|
<DialogClose
|
2022-11-28 19:14:38 +00:00
|
|
|
type="button"
|
|
|
|
color="secondary"
|
|
|
|
tabIndex={-1}
|
2022-05-04 18:45:30 +00:00
|
|
|
onClick={() => {
|
|
|
|
props.onOpenChange?.(false);
|
2022-11-28 19:14:38 +00:00
|
|
|
}}>
|
|
|
|
Cancel
|
2022-05-04 18:45:30 +00:00
|
|
|
</DialogClose>
|
|
|
|
|
|
|
|
<Button type="button" onClick={() => mutation.mutate("")}>
|
|
|
|
Continue
|
|
|
|
</Button>
|
|
|
|
</DialogFooter>
|
|
|
|
</DialogContent>
|
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AccountDialog;
|