/**
 * title: Button square
 * description: Sometimes you need a button to indicate an action using only an icon.
 * height: 150
 */

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button } from 'flowbite-qwik'
import { IconArrowLeftOutline, IconArrowRightOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/layout'

export default component$(() => {
  return (
    <div class="flex flex-wrap gap-2">
      <Button gradient="red-yellow" square>
        <IconArrowRightOutline class="h-5 w-5" />
      </Button>
      <Button color="default" pill square>
        <IconArrowRightOutline class="h-5 w-5" />
      </Button>
      <Button color="dark" outline square>
        <IconArrowLeftOutline class="h-5 w-5" />
      </Button>
      <Button color="yellow" outline pill square>
        <IconArrowLeftOutline class="h-5 w-5" />
      </Button>
    </div>
  )
})

export const onStaticGenerate: StaticGenerateHandler = async () => {
  return staticGenerateHandler()
}
