feat: move EndpointOptionsPopover as a common component

This commit is contained in:
Wentao Lyu 2023-04-02 00:29:53 +08:00
parent 099210c10e
commit 4d7fa26e6c
5 changed files with 117 additions and 48 deletions

View file

@ -0,0 +1,19 @@
import React from 'react';
export default function SaveIcon({ size = '1em', className }) {
return (
<svg
viewBox="64 64 896 896"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
className={className}
width={size}
height={size}
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"></path>
</svg>
);
}

View file

@ -0,0 +1,19 @@
import React from 'react';
export default function SwitchIcon({ size = '1em', className }) {
return (
<svg
viewBox="64 64 896 896"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
className={className}
width={size}
height={size}
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"></path>
</svg>
);
}