'use client' import { memo } from 'react' import { Timer, TestViewRest } from '@app/components/general' import { CtaCdn } from '@app/components/cta' import { strings } from '@app-strings' import { InfoBar } from './info-bar' import { WebsiteSecondary } from '../general/cells/render/website-secondary' import { FeedList } from '../feed/list' import { Website } from '@app/types' // container view for report or frame const MainView = ({ website, viewMode, }: { website: Website viewMode: 'list' | '' }) => { if (website?.url) { if (viewMode && viewMode === 'list') { // todo: remove any return } return ( ) } return null } export function ReportViewComponentLeft({ website = {}, closeButton, disablePlayground, printable, download, authenticated, viewMode, onToggleViewModeEvent, }: any) { const empty = !('domain' in website && 'url' in website) const title = website?.url || (website?.issues?.length ? 'HTML Audit' : strings.trySearch) return (
{closeButton}

{title}

{empty ? null : ( )}
{empty ? null : (
)}
) } export const ReportViewLeft = memo(ReportViewComponentLeft)