Skip to content

Commit

Permalink
add missing files 2
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Nov 26, 2023
1 parent 1f9087a commit 68f1aa6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/app/components/AreaPageActions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Link from 'next/link'
import { PencilSimple, ArrowElbowLeftDown } from '@phosphor-icons/react/dist/ssr'
import { ShareAreaLinkButton } from '@/app/components/ShareAreaLinkButton'

/**
* Main action bar for area page
*/
export const AreaPageActions: React.FC<{ uuid: string, areaName: string } > = ({ uuid, areaName }) => (
<ul className='mt-6 flex items-center justify-between'>
<Link href={`/editArea/${uuid}`} className='btn btn-primary btn-sm'>
<PencilSimple size={20} weight='duotone' /> Edit
</Link>
<Link href='#map' className='btn btn-sm'>
<ArrowElbowLeftDown size={20} /> Map
</Link>
<ShareAreaLinkButton uuid={uuid} areaName={areaName} />
</ul>
)

0 comments on commit 68f1aa6

Please sign in to comment.