mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
9 lines
382 B
TypeScript
9 lines
382 B
TypeScript
import React, { AllHTMLAttributes, FC } from 'react';
|
|
import styles from './styles.module.scss';
|
|
import classNames from 'classnames';
|
|
|
|
type IProps = AllHTMLAttributes<HTMLDivElement> & { is_blurred: boolean };
|
|
|
|
export const BlurWrapper: FC<IProps> = ({ children, is_blurred }) => (
|
|
<div className={classNames(styles.blur, { [styles.is_blurred]: is_blurred })}>{children}</div>
|
|
);
|