2023-12-03 22:54:18 +00:00
|
|
|
import * as React from "react"
|
2023-12-02 14:21:05 +00:00
|
|
|
|
|
|
|
const SvgComponent = ({ invert = false, size = 25, ...props }) => {
|
2023-12-03 22:54:18 +00:00
|
|
|
const color = invert ? "rgb(255, 255, 255)" : "rgb(10 10 10)"
|
|
|
|
const radius = 5
|
2023-12-02 14:21:05 +00:00
|
|
|
const roundedTopRightPath = `
|
|
|
|
M ${size / 2} 0
|
|
|
|
H ${size - radius}
|
|
|
|
Q ${size} 0, ${size} ${radius}
|
|
|
|
V ${size / 2}
|
|
|
|
H ${size / 2}
|
2023-12-03 22:54:18 +00:00
|
|
|
Z`
|
2023-12-02 14:21:05 +00:00
|
|
|
const roundedBottomLeftPath = `
|
|
|
|
M 0 ${size - radius}
|
|
|
|
Q 0 ${size}, ${radius} ${size}
|
|
|
|
H ${size / 2}
|
|
|
|
V ${size / 2}
|
|
|
|
H 0
|
2023-12-03 22:54:18 +00:00
|
|
|
Z`
|
2023-12-02 14:21:05 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width={size}
|
|
|
|
height={size}
|
|
|
|
{...props}
|
|
|
|
>
|
|
|
|
<path d={roundedTopRightPath} fill={color} />
|
|
|
|
<path d={roundedBottomLeftPath} fill={color} />
|
|
|
|
</svg>
|
2023-12-03 22:54:18 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SvgComponent
|