fix: add cookie notice

This commit is contained in:
2025-12-04 11:01:19 +03:00
parent d6d7f5548d
commit bd9937e86c
14 changed files with 305 additions and 20 deletions

View File

@@ -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>
);