'use client'; import * as React from 'react'; import { Button, Popover, PopoverContent, PopoverTrigger } from '@repo/ui'; import type { ToolcraftTimelineKeyframeEasing } from '../../state/types'; import { getToolcraftTimelineKeyframeEasing } from './timeline-easing-model'; import { TimelineEasingCurveIcon } from './timeline-easing-icons'; import { TimelineEasingPopoverContent } from './timeline-easing-popover-content'; import { getTimelineEasingPopoverAnchor, stopTimelineEasingEvent, } from './timeline-easing-popover-layout'; export function TimelineKeyframeEasingPopover({ easing, label, onChange, }: { easing?: ToolcraftTimelineKeyframeEasing; label: string; onChange?: (easing: ToolcraftTimelineKeyframeEasing) => void; }): React.JSX.Element { const resolvedEasing = getToolcraftTimelineKeyframeEasing(easing); return ( } > onChange?.(nextEasing)} /> ); }