---
import type { ComponentProps } from 'astro/types'
import { Header as FullHeader, Icon, Link } from 'fulldev-ui'

interface Props extends ComponentProps<typeof FullHeader> {
  text?: string
  icon?: string
  href?: string
}

const { text, href, icon, ...rest } = Astro.props
---

<FullHeader
  class:list={'banner'}
  structure="row"
  align="center"
  size="sm"
  {...rest}
>
  <Link
    href={href}
    text={text}
  >
    <Icon name={icon} />
  </Link>
</FullHeader>
