parent
3233834df6
commit
b80ed99d6c
@ -1,2 +1,3 @@
|
||||
# Dev Notes
|
||||
should use this probably https://react-dnd.github.io/
|
||||
## Tasks
|
||||
https://www.notion.so/Client-Tasks-5ebfdaf9855144a78b975f960201ddfb
|
||||
@ -0,0 +1,27 @@
|
||||
import Menu from './Menu'
|
||||
import './Css/Menus.css'
|
||||
import type { ListContext } from '../Pages/Build'
|
||||
|
||||
function exportImage() {
|
||||
alert('Image exported!')
|
||||
}
|
||||
|
||||
export default function Share(props: {current?: string, listContext: ListContext}) {
|
||||
const [list] = props.listContext
|
||||
const Items = [
|
||||
{action: publish, text: 'publish tier list'},
|
||||
{link: 'https://twitter.com', text: 'share on twitter'},
|
||||
{action: exportImage, text: 'export as image'},
|
||||
]
|
||||
function publish() {
|
||||
console.log(list)
|
||||
}
|
||||
return (
|
||||
<Menu
|
||||
title='Share'
|
||||
items={Items}
|
||||
current={props.current}
|
||||
align='left'
|
||||
/>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in new issue