mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-29 06:36:41 +07:00
9 lines
380 B
TypeScript
9 lines
380 B
TypeScript
import React, { AllHTMLAttributes, FC } from 'react';
|
|
import * as styles from './styles.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>
|
|
);
|