mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
27 lines
609 B
TypeScript
27 lines
609 B
TypeScript
import { type HTMLAttributes, forwardRef } from 'react';
|
|
import { cn } from '../lib/utils';
|
|
|
|
export interface BannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
loading?: boolean;
|
|
noPadding?: boolean;
|
|
}
|
|
|
|
const Banner = forwardRef<HTMLDivElement, BannerProps>(({ className, children, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
'flex flex-wrap items-center justify-around bg-session-green p-2 text-session-black text-sm',
|
|
className
|
|
)}
|
|
ref={ref}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
});
|
|
|
|
Banner.displayName = 'Banner';
|
|
|
|
export { Banner };
|