"use client"

import Button from "@/components/TempDesignSystem/Button"
import Image from "@/components/Image"

import type { User } from "@/types/user"

export default function CopyButton({
  membershipId,
}: Pick<User, "membershipId">) {
  function handleCopy() {
    console.log(`COPIED! (${membershipId})`)
  }

  return (
    <Button onClick={handleCopy} type="button" variant="icon">
      <Image
        alt="Copy Icon"
        height={20}
        src="/_static/icons/copy.svg"
        width={20}
      />
    </Button>
  )
}
