mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
19 lines
456 B
TypeScript
19 lines
456 B
TypeScript
import React, { FC, HTMLAttributes } from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import styles from './styles.module.scss';
|
|
|
|
|
|
type IProps = HTMLAttributes<HTMLDivElement> & {
|
|
seamless?: boolean;
|
|
stretchy?: boolean;
|
|
};
|
|
|
|
const Panel: FC<IProps> = ({ className, children, seamless, stretchy, ...props }) => (
|
|
<div className={classNames(styles.panel, className, { seamless, stretchy })} {...props}>
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
export { Panel };
|