import { Entity, MegalodonInterface } from 'megalodon' import { Virtuoso } from 'react-virtuoso' import Status from '../status/Status' import { Account } from '@/db' import { Spinner } from '@material-tailwind/react' type Props = { client: MegalodonInterface account: Account statuses: Array loading: boolean openMedia: (media: Array, index: number) => void } export default function Statuses(props: Props) { return ( <>
{props.statuses.length > 0 ? ( ( {}} filters={[]} /> )} /> ) : ( <> {props.loading && (
)} )}
) }