2022-05-16 23:15:22 +00:00
|
|
|
import {
|
|
|
|
ClockIcon,
|
|
|
|
DatabaseIcon,
|
|
|
|
PencilIcon,
|
|
|
|
TrendingUpIcon,
|
2022-06-22 16:35:50 +00:00
|
|
|
UserGroupIcon,
|
2022-05-16 23:15:22 +00:00
|
|
|
} from '@heroicons/react/outline'
|
2022-08-05 05:22:45 +00:00
|
|
|
|
2022-04-20 03:34:41 +00:00
|
|
|
import { Row } from '../layout/row'
|
2022-05-09 13:04:36 +00:00
|
|
|
import { formatMoney } from 'common/util/format'
|
2022-04-20 03:34:41 +00:00
|
|
|
import { UserLink } from '../user-page'
|
2022-08-19 17:43:57 +00:00
|
|
|
import { Contract, updateContract } from 'web/lib/firebase/contracts'
|
2022-04-20 03:34:41 +00:00
|
|
|
import dayjs from 'dayjs'
|
|
|
|
import { DateTimeTooltip } from '../datetime-tooltip'
|
2022-05-09 13:04:36 +00:00
|
|
|
import { fromNow } from 'web/lib/util/time'
|
2022-04-20 03:34:41 +00:00
|
|
|
import { Avatar } from '../avatar'
|
|
|
|
import { useState } from 'react'
|
|
|
|
import { ContractInfoDialog } from './contract-info-dialog'
|
2022-05-09 13:04:36 +00:00
|
|
|
import { Bet } from 'common/bet'
|
2022-04-21 06:03:16 +00:00
|
|
|
import NewContractBadge from '../new-contract-badge'
|
2022-06-08 20:27:52 +00:00
|
|
|
import { UserFollowButton } from '../follow-button'
|
2022-06-17 03:52:53 +00:00
|
|
|
import { DAY_MS } from 'common/util/time'
|
2022-07-01 13:47:19 +00:00
|
|
|
import { useUser } from 'web/hooks/use-user'
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
import { Editor } from '@tiptap/react'
|
|
|
|
import { exhibitExts } from 'common/util/parse'
|
2022-07-22 17:34:10 +00:00
|
|
|
import { Button } from 'web/components/button'
|
|
|
|
import { Modal } from 'web/components/layout/modal'
|
|
|
|
import { Col } from 'web/components/layout/col'
|
|
|
|
import { ContractGroupsList } from 'web/components/groups/contract-groups-list'
|
2022-07-22 22:28:53 +00:00
|
|
|
import { SiteLink } from 'web/components/site-link'
|
|
|
|
import { groupPath } from 'web/lib/firebase/groups'
|
2022-08-11 21:32:02 +00:00
|
|
|
import { insertContent } from '../editor/utils'
|
2022-08-15 19:49:33 +00:00
|
|
|
import clsx from 'clsx'
|
2022-08-19 17:43:57 +00:00
|
|
|
import { contractMetrics } from 'common/contract-details'
|
2022-04-20 03:34:41 +00:00
|
|
|
|
2022-06-23 17:12:57 +00:00
|
|
|
export type ShowTime = 'resolve-date' | 'close-date'
|
|
|
|
|
2022-05-24 06:44:16 +00:00
|
|
|
export function MiscDetails(props: {
|
2022-04-20 03:34:41 +00:00
|
|
|
contract: Contract
|
|
|
|
showHotVolume?: boolean
|
2022-06-23 17:12:57 +00:00
|
|
|
showTime?: ShowTime
|
2022-07-26 01:27:43 +00:00
|
|
|
hideGroupLink?: boolean
|
2022-04-20 03:34:41 +00:00
|
|
|
}) {
|
2022-07-26 01:27:43 +00:00
|
|
|
const { contract, showHotVolume, showTime, hideGroupLink } = props
|
2022-06-23 17:12:57 +00:00
|
|
|
const {
|
|
|
|
volume,
|
|
|
|
volume24Hours,
|
|
|
|
closeTime,
|
|
|
|
isResolved,
|
|
|
|
createdTime,
|
|
|
|
resolutionTime,
|
2022-07-22 22:28:53 +00:00
|
|
|
groupLinks,
|
2022-06-23 17:12:57 +00:00
|
|
|
} = contract
|
2022-07-22 22:28:53 +00:00
|
|
|
|
2022-06-17 03:52:53 +00:00
|
|
|
const isNew = createdTime > Date.now() - DAY_MS && !isResolved
|
2022-04-20 03:34:41 +00:00
|
|
|
|
|
|
|
return (
|
2022-08-16 22:03:55 +00:00
|
|
|
<Row className="items-center gap-3 truncate text-sm text-gray-400">
|
2022-05-24 06:44:16 +00:00
|
|
|
{showHotVolume ? (
|
|
|
|
<Row className="gap-0.5">
|
|
|
|
<TrendingUpIcon className="h-5 w-5" /> {formatMoney(volume24Hours)}
|
|
|
|
</Row>
|
2022-06-23 17:12:57 +00:00
|
|
|
) : showTime === 'close-date' ? (
|
2022-08-16 22:03:55 +00:00
|
|
|
<Row className="gap-0.5 whitespace-nowrap">
|
2022-05-24 06:44:16 +00:00
|
|
|
<ClockIcon className="h-5 w-5" />
|
|
|
|
{(closeTime || 0) < Date.now() ? 'Closed' : 'Closes'}{' '}
|
|
|
|
{fromNow(closeTime || 0)}
|
2022-04-20 03:34:41 +00:00
|
|
|
</Row>
|
2022-06-23 17:12:57 +00:00
|
|
|
) : showTime === 'resolve-date' && resolutionTime !== undefined ? (
|
|
|
|
<Row className="gap-0.5">
|
|
|
|
<ClockIcon className="h-5 w-5" />
|
|
|
|
{'Resolved '}
|
|
|
|
{fromNow(resolutionTime || 0)}
|
|
|
|
</Row>
|
2022-06-17 03:52:53 +00:00
|
|
|
) : volume > 0 || !isNew ? (
|
2022-07-23 20:23:47 +00:00
|
|
|
<Row className={'shrink-0'}>{formatMoney(contract.volume)} bet</Row>
|
2022-05-24 06:44:16 +00:00
|
|
|
) : (
|
|
|
|
<NewContractBadge />
|
|
|
|
)}
|
2022-05-24 23:57:34 +00:00
|
|
|
|
2022-07-26 01:27:43 +00:00
|
|
|
{!hideGroupLink && groupLinks && groupLinks.length > 0 && (
|
2022-07-22 22:28:53 +00:00
|
|
|
<SiteLink
|
|
|
|
href={groupPath(groupLinks[0].slug)}
|
2022-08-15 19:49:33 +00:00
|
|
|
className="truncate text-sm text-gray-400"
|
2022-07-22 22:28:53 +00:00
|
|
|
>
|
2022-08-13 00:48:41 +00:00
|
|
|
{groupLinks[0].name}
|
2022-07-22 22:28:53 +00:00
|
|
|
</SiteLink>
|
2022-05-24 23:57:34 +00:00
|
|
|
)}
|
2022-05-24 06:44:16 +00:00
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
2022-04-20 03:34:41 +00:00
|
|
|
|
2022-08-15 19:49:33 +00:00
|
|
|
export function AvatarDetails(props: {
|
|
|
|
contract: Contract
|
|
|
|
className?: string
|
|
|
|
short?: boolean
|
|
|
|
}) {
|
|
|
|
const { contract, short, className } = props
|
2022-05-24 06:44:16 +00:00
|
|
|
const { creatorName, creatorUsername } = contract
|
2022-05-16 23:15:22 +00:00
|
|
|
|
2022-05-24 06:44:16 +00:00
|
|
|
return (
|
2022-08-15 19:49:33 +00:00
|
|
|
<Row
|
|
|
|
className={clsx('items-center gap-2 text-sm text-gray-400', className)}
|
|
|
|
>
|
2022-05-24 06:44:16 +00:00
|
|
|
<Avatar
|
|
|
|
username={creatorUsername}
|
|
|
|
avatarUrl={contract.creatorAvatarUrl}
|
|
|
|
size={6}
|
|
|
|
/>
|
2022-08-15 19:49:33 +00:00
|
|
|
<UserLink name={creatorName} username={creatorUsername} short={short} />
|
2022-05-24 06:44:16 +00:00
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function AbbrContractDetails(props: {
|
|
|
|
contract: Contract
|
|
|
|
showHotVolume?: boolean
|
2022-06-23 17:12:57 +00:00
|
|
|
showTime?: ShowTime
|
2022-05-24 06:44:16 +00:00
|
|
|
}) {
|
2022-06-23 17:12:57 +00:00
|
|
|
const { contract, showHotVolume, showTime } = props
|
2022-05-24 06:44:16 +00:00
|
|
|
return (
|
|
|
|
<Row className="items-center justify-between">
|
|
|
|
<AvatarDetails contract={contract} />
|
|
|
|
|
|
|
|
<MiscDetails
|
|
|
|
contract={contract}
|
|
|
|
showHotVolume={showHotVolume}
|
2022-06-23 17:12:57 +00:00
|
|
|
showTime={showTime}
|
2022-05-24 06:44:16 +00:00
|
|
|
/>
|
|
|
|
</Row>
|
2022-04-20 03:34:41 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function ContractDetails(props: {
|
|
|
|
contract: Contract
|
|
|
|
bets: Bet[]
|
|
|
|
isCreator?: boolean
|
2022-05-17 17:31:19 +00:00
|
|
|
disabled?: boolean
|
2022-04-20 03:34:41 +00:00
|
|
|
}) {
|
2022-05-17 17:31:19 +00:00
|
|
|
const { contract, bets, isCreator, disabled } = props
|
2022-07-22 22:28:53 +00:00
|
|
|
const { closeTime, creatorName, creatorUsername, creatorId, groupLinks } =
|
|
|
|
contract
|
2022-05-24 06:44:16 +00:00
|
|
|
const { volumeLabel, resolvedDate } = contractMetrics(contract)
|
2022-07-01 22:37:30 +00:00
|
|
|
|
2022-07-22 22:28:53 +00:00
|
|
|
const groupToDisplay =
|
|
|
|
groupLinks?.sort((a, b) => a.createdTime - b.createdTime)[0] ?? null
|
2022-07-01 13:47:19 +00:00
|
|
|
const user = useUser()
|
2022-07-22 17:34:10 +00:00
|
|
|
const [open, setOpen] = useState(false)
|
2022-07-01 22:37:30 +00:00
|
|
|
|
2022-08-05 05:47:59 +00:00
|
|
|
const groupInfo = (
|
|
|
|
<Row>
|
|
|
|
<UserGroupIcon className="mx-1 inline h-5 w-5 shrink-0" />
|
2022-08-11 19:30:34 +00:00
|
|
|
<span className="truncate">
|
2022-08-05 05:47:59 +00:00
|
|
|
{groupToDisplay ? groupToDisplay.name : 'No group'}
|
|
|
|
</span>
|
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
|
2022-04-20 03:34:41 +00:00
|
|
|
return (
|
2022-05-17 17:31:19 +00:00
|
|
|
<Row className="flex-1 flex-wrap items-center gap-x-4 gap-y-2 text-sm text-gray-500">
|
|
|
|
<Row className="items-center gap-2">
|
|
|
|
<Avatar
|
|
|
|
username={creatorUsername}
|
|
|
|
avatarUrl={contract.creatorAvatarUrl}
|
|
|
|
noLink={disabled}
|
|
|
|
size={6}
|
|
|
|
/>
|
|
|
|
{disabled ? (
|
|
|
|
creatorName
|
|
|
|
) : (
|
2022-04-20 03:34:41 +00:00
|
|
|
<UserLink
|
|
|
|
className="whitespace-nowrap"
|
|
|
|
name={creatorName}
|
|
|
|
username={creatorUsername}
|
|
|
|
/>
|
2022-05-17 17:31:19 +00:00
|
|
|
)}
|
2022-06-08 20:27:52 +00:00
|
|
|
{!disabled && <UserFollowButton userId={creatorId} small />}
|
2022-05-17 17:31:19 +00:00
|
|
|
</Row>
|
2022-07-22 17:34:10 +00:00
|
|
|
<Row>
|
2022-08-05 05:47:59 +00:00
|
|
|
{disabled ? (
|
|
|
|
groupInfo
|
|
|
|
) : (
|
|
|
|
<Button
|
|
|
|
size={'xs'}
|
|
|
|
className={'max-w-[200px]'}
|
|
|
|
color={'gray-white'}
|
|
|
|
onClick={() => setOpen(!open)}
|
|
|
|
>
|
|
|
|
{groupInfo}
|
|
|
|
</Button>
|
|
|
|
)}
|
2022-07-22 17:34:10 +00:00
|
|
|
</Row>
|
|
|
|
<Modal open={open} setOpen={setOpen} size={'md'}>
|
|
|
|
<Col
|
|
|
|
className={
|
|
|
|
'max-h-[70vh] min-h-[20rem] overflow-auto rounded bg-white p-6'
|
|
|
|
}
|
|
|
|
>
|
2022-07-22 22:28:53 +00:00
|
|
|
<ContractGroupsList
|
|
|
|
groupLinks={groupLinks ?? []}
|
|
|
|
contract={contract}
|
|
|
|
user={user}
|
|
|
|
/>
|
2022-07-22 17:34:10 +00:00
|
|
|
</Col>
|
|
|
|
</Modal>
|
2022-04-20 03:34:41 +00:00
|
|
|
|
2022-05-17 17:31:19 +00:00
|
|
|
{(!!closeTime || !!resolvedDate) && (
|
|
|
|
<Row className="items-center gap-1">
|
|
|
|
<ClockIcon className="h-5 w-5" />
|
2022-04-20 03:34:41 +00:00
|
|
|
|
2022-05-17 17:31:19 +00:00
|
|
|
{resolvedDate && contract.resolutionTime ? (
|
|
|
|
<>
|
|
|
|
<DateTimeTooltip
|
|
|
|
text="Market resolved:"
|
2022-08-13 00:48:41 +00:00
|
|
|
time={dayjs(contract.resolutionTime)}
|
2022-05-17 17:31:19 +00:00
|
|
|
>
|
|
|
|
{resolvedDate}
|
|
|
|
</DateTimeTooltip>
|
|
|
|
</>
|
|
|
|
) : null}
|
|
|
|
|
|
|
|
{!resolvedDate && closeTime && (
|
|
|
|
<>
|
|
|
|
<EditableCloseDate
|
|
|
|
closeTime={closeTime}
|
|
|
|
contract={contract}
|
|
|
|
isCreator={isCreator ?? false}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
)}
|
2022-04-20 03:34:41 +00:00
|
|
|
</Row>
|
2022-05-17 17:31:19 +00:00
|
|
|
)}
|
2022-06-15 04:31:20 +00:00
|
|
|
|
2022-05-17 17:31:19 +00:00
|
|
|
<Row className="items-center gap-1">
|
|
|
|
<DatabaseIcon className="h-5 w-5" />
|
|
|
|
|
|
|
|
<div className="whitespace-nowrap">{volumeLabel}</div>
|
2022-04-20 03:34:41 +00:00
|
|
|
</Row>
|
2022-05-17 17:31:19 +00:00
|
|
|
|
2022-06-15 04:31:20 +00:00
|
|
|
{!disabled && <ContractInfoDialog contract={contract} bets={bets} />}
|
2022-05-17 17:31:19 +00:00
|
|
|
</Row>
|
2022-04-20 03:34:41 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function EditableCloseDate(props: {
|
|
|
|
closeTime: number
|
|
|
|
contract: Contract
|
|
|
|
isCreator: boolean
|
|
|
|
}) {
|
|
|
|
const { closeTime, contract, isCreator } = props
|
|
|
|
|
2022-08-13 00:48:41 +00:00
|
|
|
const dayJsCloseTime = dayjs(closeTime)
|
|
|
|
const dayJsNow = dayjs()
|
|
|
|
|
2022-04-20 03:34:41 +00:00
|
|
|
const [isEditingCloseTime, setIsEditingCloseTime] = useState(false)
|
|
|
|
const [closeDate, setCloseDate] = useState(
|
2022-08-13 00:48:41 +00:00
|
|
|
closeTime && dayJsCloseTime.format('YYYY-MM-DDTHH:mm')
|
2022-04-20 03:34:41 +00:00
|
|
|
)
|
|
|
|
|
2022-08-13 00:48:41 +00:00
|
|
|
const isSameYear = dayJsCloseTime.isSame(dayJsNow, 'year')
|
|
|
|
const isSameDay = dayJsCloseTime.isSame(dayJsNow, 'day')
|
2022-04-20 03:34:41 +00:00
|
|
|
|
|
|
|
const onSave = () => {
|
|
|
|
const newCloseTime = dayjs(closeDate).valueOf()
|
|
|
|
if (newCloseTime === closeTime) setIsEditingCloseTime(false)
|
|
|
|
else if (newCloseTime > Date.now()) {
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
const content = contract.description
|
2022-04-20 03:34:41 +00:00
|
|
|
const formattedCloseDate = dayjs(newCloseTime).format('YYYY-MM-DD h:mm a')
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
|
|
|
|
const editor = new Editor({ content, extensions: exhibitExts })
|
2022-08-11 21:32:02 +00:00
|
|
|
editor.commands.focus('end')
|
|
|
|
insertContent(
|
2022-08-06 22:43:41 +00:00
|
|
|
editor,
|
|
|
|
`<br><p>Close date updated to ${formattedCloseDate}</p>`
|
|
|
|
)
|
2022-04-20 03:34:41 +00:00
|
|
|
|
2022-06-15 04:31:20 +00:00
|
|
|
updateContract(contract.id, {
|
2022-04-20 03:34:41 +00:00
|
|
|
closeTime: newCloseTime,
|
Rich content (#620)
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 18:58:22 +00:00
|
|
|
description: editor.getJSON(),
|
2022-06-15 04:31:20 +00:00
|
|
|
})
|
|
|
|
|
2022-04-20 03:34:41 +00:00
|
|
|
setIsEditingCloseTime(false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{isEditingCloseTime ? (
|
|
|
|
<div className="form-control mr-1 items-start">
|
|
|
|
<input
|
|
|
|
type="datetime-local"
|
|
|
|
className="input input-bordered"
|
|
|
|
onClick={(e) => e.stopPropagation()}
|
|
|
|
onChange={(e) => setCloseDate(e.target.value || '')}
|
|
|
|
min={Date.now()}
|
|
|
|
value={closeDate}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
) : (
|
|
|
|
<DateTimeTooltip
|
|
|
|
text={closeTime > Date.now() ? 'Trading ends:' : 'Trading ended:'}
|
2022-08-13 00:48:41 +00:00
|
|
|
time={dayJsCloseTime}
|
2022-04-20 03:34:41 +00:00
|
|
|
>
|
|
|
|
{isSameYear
|
2022-08-13 00:48:41 +00:00
|
|
|
? dayJsCloseTime.format('MMM D')
|
|
|
|
: dayJsCloseTime.format('MMM D, YYYY')}
|
2022-04-20 03:34:41 +00:00
|
|
|
{isSameDay && <> ({fromNow(closeTime)})</>}
|
|
|
|
</DateTimeTooltip>
|
|
|
|
)}
|
|
|
|
|
|
|
|
{isCreator &&
|
|
|
|
(isEditingCloseTime ? (
|
|
|
|
<button className="btn btn-xs" onClick={onSave}>
|
|
|
|
Done
|
|
|
|
</button>
|
|
|
|
) : (
|
2022-07-22 17:34:10 +00:00
|
|
|
<Button
|
|
|
|
size={'xs'}
|
|
|
|
color={'gray-white'}
|
2022-04-20 03:34:41 +00:00
|
|
|
onClick={() => setIsEditingCloseTime(true)}
|
|
|
|
>
|
2022-07-22 17:34:10 +00:00
|
|
|
<PencilIcon className="mr-0.5 inline h-4 w-4" /> Edit
|
|
|
|
</Button>
|
2022-04-20 03:34:41 +00:00
|
|
|
))}
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|