/* eslint-disable @typescript-eslint/no-unused-vars */ import { Box, Button } from '@biom3/react'; import { useEffect, useRef } from 'react'; import { SimpleLayout } from '../SimpleLayout/SimpleLayout'; import { CenteredBoxContent } from '../CenteredBoxContent/CenteredBoxContent'; import { StatusBox } from './StatusBox'; import { StatusType } from './StatusType'; import { FooterLogo } from '../Footer/FooterLogo'; import { statusContainerStyles } from './StatusViewStyles'; import { HeaderNavigation } from '../Header/HeaderNavigation'; export interface StatusViewProps { actionText?: string; onActionClick?: () => void; secondaryActionText?: string; onSecondaryActionClick?: () => void; onRenderEvent?: () => void; onCloseClick?: () => void; testId: string; statusText: string; statusType: StatusType; statusIconStyles?: Record; } export function StatusView({ actionText, onActionClick, secondaryActionText, onSecondaryActionClick, onRenderEvent, onCloseClick, testId, statusText, statusType, statusIconStyles, }: StatusViewProps) { const firstRender = useRef(true); useEffect(() => { if (onRenderEvent && firstRender.current) { firstRender.current = false; onRenderEvent(); } }, [firstRender.current, onRenderEvent]); const onStatusActionClick = () => { if (onActionClick) { onActionClick(); } }; return ( } header={} floatHeader > {actionText && onActionClick && ( )} {secondaryActionText && onSecondaryActionClick && ( )} ); }