Edit.tsx 298 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from "react";

type Props = {
  id: string;
  changeCurrentId: (event: React.MouseEvent<HTMLButtonElement>) => void;
};

export const Edit = ({ id, changeCurrentId }: Props) => {
  return (
    <button id={id} className="" onClick={changeCurrentId}>
      수정
    </button>
  );
};