mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 17:28:54 +00:00
23 lines
458 B
TypeScript
23 lines
458 B
TypeScript
|
import React from 'react';
|
||
|
import classNames from 'classnames';
|
||
|
|
||
|
const baseClass = 'info-banner';
|
||
|
|
||
|
interface IInfoBannerProps {
|
||
|
children: React.ReactNode;
|
||
|
className?: string;
|
||
|
}
|
||
|
|
||
|
const InfoBanner = (props: IInfoBannerProps): JSX.Element => {
|
||
|
const { children, className } = props;
|
||
|
const wrapperClasses = classNames(baseClass, className);
|
||
|
|
||
|
return (
|
||
|
<div className={wrapperClasses}>
|
||
|
{children}
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default InfoBanner;
|