17 lines
418 B
TypeScript
17 lines
418 B
TypeScript
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
import { InstallAppButtonProps } from "../../types";
|
|
|
|
export default function InstallAppButton(props: InstallAppButtonProps) {
|
|
const mutation = useAddAppMutation("exchange2016_calendar");
|
|
return (
|
|
<>
|
|
{props.render({
|
|
onClick() {
|
|
mutation.mutate("");
|
|
},
|
|
loading: mutation.isLoading,
|
|
})}
|
|
</>
|
|
);
|
|
}
|