import Link from 'next/link'
import React from 'react'
import type { NextApiRequest, NextApiResponse } from 'next'

const IssuesPage = () => {
  async function handler(
    req: NextApiRequest,
    res: NextApiResponse,
    ) {
      const data = req.body
      console.log(...data)
      res.redirect(307, '/issues')
  }

  return (
    <div>
        <button className='btn bg-emerald-400 text-black hover:bg-white'><Link href='/issues/new'>New Ticket</Link></button>
    </div>
  )
}

export default IssuesPage