cal.pub0.org/packages/app-store/exchange2016calendar/components/InstallAppButton.tsx

17 lines
423 B
TypeScript
Raw Normal View History

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