Functional but settings modals position and size badly
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import React, { MouseEvent } from "react"
|
||||
|
||||
type ButtonProps = {
|
||||
onClick: React.MouseEventHandler<HTMLButtonElement>
|
||||
}
|
||||
|
||||
export function CloseButton({ onClick }: ButtonProps) {
|
||||
return (
|
||||
<button className="close-button" onClick={onClick}>×</button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user