import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout' import type {SequenceEditorTree_Sheet} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree' import {usePrism} from '@theatre/react' import type {Pointer} from '@theatre/dataverse' import React from 'react' import RightSheetObjectRow from './SheetObjectRow' import RightRow from './Row' import {collectAggregateKeyframesInPrism} from './collectAggregateKeyframes' import AggregatedKeyframeTrack from './AggregatedKeyframeTrack/AggregatedKeyframeTrack' const SheetRow: React.FC<{ leaf: SequenceEditorTree_Sheet layoutP: Pointer }> = ({leaf, layoutP}) => { return usePrism(() => { const aggregatedKeyframes = collectAggregateKeyframesInPrism(leaf) const node = ( ) return ( {leaf.children.map((sheetObjectLeaf) => ( ))} ) }, [leaf, layoutP]) } export default SheetRow