ente/src/components/AddToCollectionBtn.tsx

41 lines
1,021 B
TypeScript
Raw Normal View History

2021-04-27 11:35:16 +00:00
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.button`
border: none;
2021-05-09 15:10:06 +00:00
background-color: #2dc262;
2021-04-27 11:35:16 +00:00
position: fixed;
z-index: 1;
bottom: 20px;
right: 100px;
width: 60px;
height: 60px;
border-radius: 50%;
color: #fff;
`;
export default function AddToCollectionBtn(props) {
return (
<Wrapper onClick={props.onClick}>
<svg
xmlns="http://www.w3.org/2000/svg"
height={props.height}
viewBox={props.viewBox}
width={props.width}
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
2021-08-13 02:38:38 +00:00
strokeLinejoin="round">
2021-05-29 06:27:52 +00:00
<line x1="12" y1="5" x2="12" y2="19" />
<line x1="5" y1="12" x2="19" y2="12" />
2021-04-27 11:35:16 +00:00
</svg>
</Wrapper>
);
}
AddToCollectionBtn.defaultProps = {
height: 24,
width: 24,
viewBox: '0 0 24 24',
};