import React, { MouseEvent, MouseEventHandler } from "react"; type ThemeProps = { handleClick: MouseEventHandler; } export default function Theme({handleClick}: ThemeProps) { // const handleClick = (event: MouseEvent) => { // console.log(event.currentTarget.id) // } return (
); };