import { Box } from '@wix/design-system'; import React, { ReactNode } from 'react'; import { st, classes } from './LoadingRow.st.css.js'; import { LoadingRowState } from './LoadingRowState'; import { AILoadingLottiePoster } from './AILoadingLottiePoster'; import { observer } from 'mobx-react-lite'; interface LoadingRowTDProps { state: LoadingRowState; replacedCell: { props: { children: ReactNode; }; }; } function _LoadingRowTD({ state, replacedCell }: LoadingRowTDProps) { return ( {replacedCell.props.children}
{state.LottieRenderer && state.animationData ? ( ) : ( )}
); } export const LoadingRowTD = observer(_LoadingRowTD);