Convert to typescript

This commit is contained in:
Luck
2022-11-06 22:46:13 +00:00
parent e995261d87
commit 042bace2c6
18 changed files with 593 additions and 321 deletions

23
src/components/Button.tsx Normal file
View File

@@ -0,0 +1,23 @@
import styled from 'styled-components';
const Button = styled.div`
cursor: pointer;
height: 100%;
display: flex;
align-items: center;
padding: 0 0.25em;
color: inherit;
text-decoration: none;
:hover {
background: ${props => props.theme.highlight};
}
@media (max-width: 640px) {
span {
display: none;
}
}
`;
export default Button;