'use client'
import { useState } from 'react'
import { ListSkeleton } from '@app/components/placeholders'
import { ReportViewLeft } from './report-left'
import { Website } from '@app/types'
import dynamic from 'next/dynamic'
const TestViewRest = dynamic(
() =>
import('../general/test-view-rest').then((mod) => mod.TestViewRest) as any,
{ ssr: false, loading: () =>
Loading playground...
}
) as any
function ReportEmptyView() {
return (
)
}
const FeedList = dynamic(
() => import('../feed/list').then((mod) => mod.FeedList) as any,
{
ssr: false,
loading: () => ,
}
) as any
function ReportInner({
website,
viewMode,
}: {
disablePlayground?: boolean
website: Website
disableTabs?: boolean
viewMode?: 'playground' | 'list'
}) {
// no tabs rendered
if (viewMode === 'playground') {
return (
)
}
return
}
export function ReportView({
website,
closeButton,
disablePlayground,
disableTabs,
download,
authenticated,
}: any) {
const [leftViewMode, setViewMode] = useState<'list' | 'playground'>(
'playground'
)
const onToggleViewModeEvent = () =>
setViewMode((mode: string) =>
mode === 'playground' ? 'list' : 'playground'
)
const empty = !('domain' in website && 'url' in website)
return (
)
}