You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
641 B
21 lines
641 B
import React from 'react';
|
|
import classNames from 'classnames';
|
|
|
|
type Props = {
|
|
position: string,
|
|
styles: string,
|
|
children: React.ReactNode };
|
|
|
|
export const Modals: React.FC<Props> = ({position, styles, children}) => {
|
|
return(
|
|
<div id="openModal" className={'modal'}>
|
|
<div className={classNames('modal_dialog ', position)}>
|
|
<div className={classNames('modal_content ', styles)}>
|
|
<div className='modal_body'>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}; |