blob: ce0183bad020ae5edc8684b2a8a6d6bba8c4c58f (
plain) (
tree)
|
|
import React from "react";
import styled from "styled-components";
const Button = styled.input`
border: none;
padding: 4;
display: inline;
background: none;
color: red;
cursor: pointer;
&:hover {
color: darkred;
}
`;
type Props = React.InputHTMLAttributes<HTMLInputElement>;
const DeleteButton: React.FC<Props> = (props) => (
<Button type="button" value="✖" {...props} />
);
export default DeleteButton;
|