/* eslint-disable react/jsx-props-no-spreading */ import React, { Dispatch, SetStateAction } from 'react'; import { Popover, PopoverBody, PopoverFooter } from '@webapp/ui/Popover'; import Button from '@webapp/ui/Button'; import { Portal } from '@webapp/ui/Portal'; import TextField from '@webapp/ui/Form/TextField'; import { AddAnnotationProps } from './AddAnnotation.menuitem'; import { useAnnotationForm } from './useAnnotationForm'; interface AnnotationInfo { /** where to position the popover */ popoverAnchorPoint: AddAnnotationProps['popoverAnchorPoint']; timestamp: AddAnnotationProps['timestamp']; timezone: AddAnnotationProps['timezone']; value: { content: string; timestamp: number }; isOpen: boolean; onClose: () => void; popoverClassname?: string; } const AnnotationInfo = ({ popoverAnchorPoint, value, timezone, isOpen, onClose, popoverClassname, }: AnnotationInfo) => { const { register, errors } = useAnnotationForm({ value, timezone }); return ( >} className={popoverClassname} >
); }; export default AnnotationInfo;