Portal/rsconcept/frontend/src/components/Modal/ModalBackdrop.tsx

20 lines
455 B
TypeScript
Raw Normal View History

2025-02-06 20:27:56 +03:00
'use client';
import clsx from 'clsx';
interface ModalBackdropProps {
onHide: () => void;
}
export function ModalBackdrop({ onHide }: ModalBackdropProps) {
return (
<>
2025-03-07 16:21:18 +03:00
<div className={clsx('z-bottom', 'fixed top-0 left-0', 'w-full h-full', 'backdrop-blur-[3px] opacity-50')} />
2025-02-06 20:27:56 +03:00
<div
2025-03-07 16:21:18 +03:00
className={clsx('z-bottom', 'fixed top-0 left-0', 'w-full h-full', 'bg-prim-0 opacity-25')}
2025-02-06 20:27:56 +03:00
onClick={onHide}
/>
</>
);
}