feat: poll response notification
This commit is contained in:
parent
20c712c56b
commit
bcd149b304
14 changed files with 209 additions and 93 deletions
|
|
@ -6,18 +6,16 @@ import { useTranslation } from 'react-i18next'
|
|||
|
||||
export default function LiveEventPreview({
|
||||
event,
|
||||
className,
|
||||
onClick
|
||||
className
|
||||
}: {
|
||||
event: Event
|
||||
className?: string
|
||||
onClick?: React.MouseEventHandler<HTMLDivElement> | undefined
|
||||
}) {
|
||||
const { t } = useTranslation()
|
||||
const metadata = useMemo(() => getLiveEventMetadataFromEvent(event), [event])
|
||||
|
||||
return (
|
||||
<div className={cn('pointer-events-none', className)} onClick={onClick}>
|
||||
<div className={cn('pointer-events-none', className)}>
|
||||
[{t('Live event')}] <span className="italic pr-0.5">{metadata.title}</span>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue