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

18 lines
409 B
TypeScript
Raw Normal View History

2022-05-01 20:42:35 +00:00
import useAddAppMutation from "../../_utils/useAddAppMutation";
import { InstallAppButtonProps } from "../../types";
export default function InstallAppButton(props: InstallAppButtonProps) {
const mutation = useAddAppMutation("giphy_other");
return (
<>
{props.render({
onClick() {
mutation.mutate("");
},
loading: mutation.isLoading,
})}
</>
);
}