add ActionNote modal window

This commit is contained in:
smanylov
2026-01-16 17:12:04 +07:00
parent 7f56debe16
commit a54326461a
+19 -1
View File
@@ -1,5 +1,13 @@
'use client'
import { IconBell, IconShield, IconBlank } from '@/app/ui/icons/icons'; import { IconBell, IconShield, IconBlank } from '@/app/ui/icons/icons';
import { useState } from 'react';
import ModalWindow from '@/app/components/modalWindow';
import ActionNote from '@/app/ui/main-page/actions-modals/action-note';
export default function HeaderMenu() { export default function HeaderMenu() {
const [showModal, setShowModal] = useState(false);
return ( return (
<header <header
className="header-menu-wrapper" className="header-menu-wrapper"
@@ -27,7 +35,12 @@ export default function HeaderMenu() {
</button> </button>
<button className="px-4 py-2 bg-white/20 hover:bg-white/30 rounded-lg transition font-semibold flex"> <button
className="px-4 py-2 bg-white/20 hover:bg-white/30 rounded-lg transition font-semibold flex"
onClick={() => {
setShowModal(true);
}}
>
<i className="fas fa-sticky-note mr-2"> <i className="fas fa-sticky-note mr-2">
<IconBlank /> <IconBlank />
</i> </i>
@@ -45,6 +58,11 @@ export default function HeaderMenu() {
</div> </div>
</div> </div>
</div> </div>
<ModalWindow state={showModal} callBack={() => {
setShowModal(false);
}}>
<ActionNote />
</ModalWindow>
</header> </header>
) )
} }