import { IStream } from "@/lib/streams"; import NotFound from "app/vt/[slug]/not-found"; import { LocalizedDate } from "./localized-date"; import Link from "next/link"; import ChaturbateIcon from "@/components/icons/chaturbate"; import FanslyIcon from "@/components/icons/fansly"; import Image from "next/legacy/image"; export interface IStreamProps { stream: IStream; } export function Stream({ stream }: IStreamProps) { if (!stream) return return (
                
                    {JSON.stringify(stream, null, 2)}
                
            
{/*

Stream {stream.attributes.date}

*/}
) } export function StreamSummary ({ stream }: IStreamProps) { if (!stream) return // return ( //
    //         
    //             {JSON.stringify(stream, null, 2)}
    //         
    //     
// ) const archiveStatus = stream.attributes.archiveStatus; const archiveStatusClassName = (() => { if (archiveStatus === 'missing') return 'is-danger'; if (archiveStatus === 'good') return 'is-success'; if (archiveStatus === 'issue') return 'is-warning'; })(); return (
{/*
                    
                        {JSON.stringify(stream, null, 2)}
                    
                
*/}
{stream.attributes.vtuber.data.attributes.displayName}
{stream.attributes.vtuber.data.attributes.displayName}
{(stream.attributes.isChaturbateStream) && } {(stream.attributes.isFanslyStream) && }
{stream.attributes.archiveStatus}
) }