import type {FunctionComponent} from 'react'
import {Input} from '@/components/ui/input'
import ContactCardSkeleton from '@/pages/home/_contactCard/contactCardSkeleton.tsx'

const Loading: FunctionComponent = () => {
  return (
    <>
      <div className="container mx-auto p-4 grid">
        <div>
          <form action="/contacts" method="get">
            <Input placeholder="Search your contacts" name="contactName" />
          </form>

          {Array(10)
            .fill(10)
            .map((_, i) => (
              <ContactCardSkeleton key={i} />
            ))}
        </div>
      </div>
    </>
  )
}

export default Loading
