19 lines
428 B
TypeScript
19 lines
428 B
TypeScript
import type { InstallAppButtonProps } from "@calcom/app-store/types";
|
|
|
|
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
|
|
export default function InstallAppButton(props: InstallAppButtonProps) {
|
|
const mutation = useAddAppMutation("around_video");
|
|
|
|
return (
|
|
<>
|
|
{props.render({
|
|
onClick() {
|
|
mutation.mutate("");
|
|
},
|
|
loading: mutation.isLoading,
|
|
})}
|
|
</>
|
|
);
|
|
}
|