import { DraggableMediaItem } from "@/components/ui/draggable-item"; import { PanelBaseView as BaseView } from "@/components/editor/panel-base-view"; import { useTimelineStore } from "@/stores/timeline-store"; import { DEFAULT_TEXT_ELEMENT } from "@/constants/text-constants"; export function TextView() { return ( Default text } dragData={{ id: "temp-text-id", type: DEFAULT_TEXT_ELEMENT.type, name: DEFAULT_TEXT_ELEMENT.name, content: DEFAULT_TEXT_ELEMENT.content, }} aspectRatio={1} onAddToTimeline={(currentTime) => useTimelineStore.getState().addElementAtTime( { ...DEFAULT_TEXT_ELEMENT, id: "temp-text-id", }, currentTime ) } showLabel={false} /> ); }