fix: add cookie notice
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
'use client';
|
||||
|
||||
import s from './styles.module.scss';
|
||||
import { Icons } from '@shared/ui';
|
||||
import { phoneBeautify } from '@shared/lib/phoneBeautify/phoneBeautify';
|
||||
import { CONTACTS } from '@shared/const/contacts';
|
||||
import { useModal } from '@core/providers/modal-provider';
|
||||
import { ConsultationModal } from '@/feature/article';
|
||||
|
||||
function MobileCallback() {
|
||||
const modal = useModal();
|
||||
const openModal = () => modal.showModal(<ConsultationModal />);
|
||||
|
||||
const handlePhoneClick = () => {
|
||||
window.open(`tel:${CONTACTS.PHONE}`, '_self');
|
||||
};
|
||||
return (
|
||||
<div className={s.Root}>
|
||||
<button className={s.Button}>
|
||||
<button className={s.Button} onClick={openModal}>
|
||||
<Icons.MobileContact className={s.Icon} />
|
||||
<span className={s.Text}>Записаться</span>
|
||||
</button>
|
||||
<button className={s.Button}>
|
||||
<button className={s.Button} onClick={handlePhoneClick}>
|
||||
<Icons.MobilePhone className={s.Icon} />
|
||||
<span className={s.Text}>+7 (900) 241-34-34</span>
|
||||
<span className={s.Text}>{phoneBeautify(CONTACTS.PHONE)}</span>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user