Websites/app/javascript/controllers/maidboye_cafe/home_controller.ts

19 lines
504 B
TypeScript
Raw Normal View History

2024-05-03 03:04:43 +00:00
import { Controller } from "@hotwired/stimulus"
interface KofiWidgetOverlay {
draw: (pid: string, config: object) => void;
}
declare const kofiWidgetOverlay: KofiWidgetOverlay;
export default class extends Controller {
override connect() {
kofiWidgetOverlay.draw("maidboye", {
"type": "floating-chat",
"floating-chat.donateButton.text": "Donate",
"floating-chat.donateButton.background-color": "#00bfa5",
"floating-chat.donateButton.text-color": "#fff"
});
}
}