2022-11-23 02:55:25 +00:00
|
|
|
import type { DialogProps } from "@calcom/ui";
|
2022-12-01 00:11:59 +00:00
|
|
|
import { Button } from "@calcom/ui";
|
|
|
|
import { Dialog, DialogClose, DialogContent, DialogFooter } 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 (
|
2022-12-01 00:11:59 +00:00
|
|
|
<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">
|
2022-05-04 18:45:30 +00:00
|
|
|
<DialogFooter>
|
2022-12-01 00:11:59 +00:00
|
|
|
<>
|
|
|
|
<DialogClose
|
|
|
|
type="button"
|
|
|
|
color="secondary"
|
|
|
|
tabIndex={-1}
|
|
|
|
onClick={() => {
|
|
|
|
props.onOpenChange?.(false);
|
|
|
|
}}>
|
|
|
|
Cancel
|
|
|
|
</DialogClose>
|
2022-05-04 18:45:30 +00:00
|
|
|
|
2022-12-01 00:11:59 +00:00
|
|
|
<Button type="button" onClick={() => mutation.mutate("")}>
|
|
|
|
Continue
|
|
|
|
</Button>
|
|
|
|
</>
|
2022-05-04 18:45:30 +00:00
|
|
|
</DialogFooter>
|
|
|
|
</DialogContent>
|
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AccountDialog;
|