21 lines
481 B
TypeScript
21 lines
481 B
TypeScript
"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="/copy.svg" width={20} />
|
|
</Button>
|
|
)
|
|
}
|