Created
January 13, 2023 20:59
-
-
Save AlexMachin1997/75e5a4e53a6a2ac0bd645d68dd176970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function EditInactiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<path d='M4 13V16H7L16 7L13 4L4 13Z' fill='#EDE9FE' stroke='#A78BFA' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function EditActiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<path d='M4 13V16H7L16 7L13 4L4 13Z' fill='#8B5CF6' stroke='#C4B5FD' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function DuplicateInactiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<path d='M4 4H12V12H4V4Z' fill='#EDE9FE' stroke='#A78BFA' strokeWidth='2' /> | |
<path d='M8 8H16V16H8V8Z' fill='#EDE9FE' stroke='#A78BFA' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function DuplicateActiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<path d='M4 4H12V12H4V4Z' fill='#8B5CF6' stroke='#C4B5FD' strokeWidth='2' /> | |
<path d='M8 8H16V16H8V8Z' fill='#8B5CF6' stroke='#C4B5FD' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function ArchiveInactiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<rect x='5' y='8' width='10' height='8' fill='#EDE9FE' stroke='#A78BFA' strokeWidth='2' /> | |
<rect x='4' y='4' width='12' height='4' fill='#EDE9FE' stroke='#A78BFA' strokeWidth='2' /> | |
<path d='M8 12H12' stroke='#A78BFA' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function ArchiveActiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<rect x='5' y='8' width='10' height='8' fill='#8B5CF6' stroke='#C4B5FD' strokeWidth='2' /> | |
<rect x='4' y='4' width='12' height='4' fill='#8B5CF6' stroke='#C4B5FD' strokeWidth='2' /> | |
<path d='M8 12H12' stroke='#A78BFA' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function MoveInactiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<path d='M10 4H16V10' stroke='#A78BFA' strokeWidth='2' /> | |
<path d='M16 4L8 12' stroke='#A78BFA' strokeWidth='2' /> | |
<path d='M8 6H4V16H14V12' stroke='#A78BFA' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function MoveActiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<path d='M10 4H16V10' stroke='#C4B5FD' strokeWidth='2' /> | |
<path d='M16 4L8 12' stroke='#C4B5FD' strokeWidth='2' /> | |
<path d='M8 6H4V16H14V12' stroke='#C4B5FD' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function DeleteInactiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<rect x='5' y='6' width='10' height='10' fill='#EDE9FE' stroke='#A78BFA' strokeWidth='2' /> | |
<path d='M3 6H17' stroke='#A78BFA' strokeWidth='2' /> | |
<path d='M8 6V4H12V6' stroke='#A78BFA' strokeWidth='2' /> | |
</svg> | |
); | |
} | |
function DeleteActiveIcon(props) { | |
return ( | |
<svg {...props} viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'> | |
<rect x='5' y='6' width='10' height='10' fill='#8B5CF6' stroke='#C4B5FD' strokeWidth='2' /> | |
<path d='M3 6H17' stroke='#C4B5FD' strokeWidth='2' /> | |
<path d='M8 6V4H12V6' stroke='#C4B5FD' strokeWidth='2' /> | |
</svg> | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Used to place the menu either on the top or bottom of the Listbox button | |
const { styles, attributes } = usePopper(referenceElement, popperElement, { | |
placement: 'bottom-start', | |
modifiers: [ | |
{ | |
name: 'flip', | |
options: { | |
// Switch between top and bottom for the position of the element | |
fallbackPlacements: ['bottom-end'] | |
} | |
}, | |
{ | |
name: 'offset', | |
options: { | |
offset: [0, 10] | |
} | |
} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment