record.tsx 587 B

12345678910111213141516171819
  1. import { memo } from 'react'
  2. import Run from '../run'
  3. import { useStore } from '../store'
  4. const Record = () => {
  5. const historyWorkflowData = useStore(s => s.historyWorkflowData)
  6. return (
  7. <div className='flex flex-col w-[400px] h-full rounded-l-2xl border-[0.5px] border-gray-200 shadow-xl bg-white'>
  8. <div className='flex items-center justify-between p-4 pb-1 text-base font-semibold text-gray-900'>
  9. {`Test Run#${historyWorkflowData?.sequence_number}`}
  10. </div>
  11. <Run runID={historyWorkflowData?.id || ''} />
  12. </div>
  13. )
  14. }
  15. export default memo(Record)