Replace entire repo content with kottgard-production-v1.1.zip (for shahikitchen-prod repo)
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import type { MessagingGateway } from '@/application/messaging/ports';
|
||||
import { RESTAURANT_CONTACT } from '@/domain/shared/constants';
|
||||
|
||||
export class BrowserWhatsAppGateway implements MessagingGateway {
|
||||
openWhatsApp(message: string): void {
|
||||
if (typeof window === 'undefined') return;
|
||||
const encoded = encodeURIComponent(message);
|
||||
window.open(
|
||||
`https://wa.me/${RESTAURANT_CONTACT.whatsappNumber}?text=${encoded}`,
|
||||
'_blank'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user