import React, { type VFC } from 'react'; import { FeatureEnvironmentSeen } from 'component/feature/FeatureView/FeatureEnvironmentSeen/FeatureEnvironmentSeen'; import type { FeatureSearchEnvironmentSchema } from 'openapi'; import { FeatureLifecycle } from 'component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FeatureLifecycle'; import { Box } from '@mui/material'; interface IFeatureSeenCellProps { feature: { environments?: FeatureSearchEnvironmentSchema[]; lastSeenAt?: string | null; }; } export const FeatureEnvironmentSeenCell: VFC = ({ feature, ...rest }) => { const environments = feature.environments ? Object.values(feature.environments) : []; return ( ); }; interface IFeatureLifecycleProps { feature: { environments?: FeatureSearchEnvironmentSchema[]; lastSeenAt?: string | null; project: string; name: string; }; onComplete?: () => void; onUncomplete?: () => void; onArchive?: () => void; expanded?: boolean; } export const FeatureLifecycleCell: VFC = ({ feature, onComplete, onUncomplete, onArchive, expanded, ...rest }) => { const environments = feature.environments ? Object.values(feature.environments) : []; return ( ); }; export const MemoizedFeatureEnvironmentSeenCell = React.memo( FeatureEnvironmentSeenCell, );