Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 3x 5x | export interface BannerProps {
  alert: string
  description: string
}
 
const Banner = ({ alert, description }: BannerProps) => {
  return (
    <div className="bg-blue-normal font-body text-white">
      <div className="container mx-auto flex flex-col space-y-2 p-4 lg:flex-row lg:items-center lg:space-x-4 lg:space-y-0">
        <div
          className="w-max whitespace-nowrap border-2 px-4 py-1"
          role="alert"
        >
          <b>{alert}</b>
        </div>
        <div>{description}</div>
      </div>
    </div>
  )
}
 
export default Banner
  |