mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
26 lines
552 B
JavaScript
26 lines
552 B
JavaScript
import React from 'react';
|
|
import classnames from 'classnames';
|
|
import LoadingIndicator from 'components/LoadingIndicator';
|
|
|
|
/**
|
|
* Drawer inside.
|
|
*/
|
|
export function DrawerInsider({
|
|
loading,
|
|
children,
|
|
name,
|
|
mount = false,
|
|
className,
|
|
}) {
|
|
return (
|
|
<div className={classnames({
|
|
'drawer__insider': true,
|
|
'drawer__insider--loading': loading,
|
|
[`drawer__insider--${name}`]: !!name,
|
|
}, className)}>
|
|
<LoadingIndicator loading={loading} mount={mount}>
|
|
{ children }
|
|
</LoadingIndicator>
|
|
</div>
|
|
);
|
|
} |