"use client"; import { ENDPOINTS } from "#/api/config"; import { useEffect, useState } from "react"; export const ReleaseInfoStreaming = (props: { release_id: number }) => { const [data, setData] = useState(null); useEffect(() => { const _getData = async () => { const response = await fetch( `${ENDPOINTS.release.licensed}/${props.release_id}` ); setData(await response.json()); }; _getData(); }, [props.release_id]); return ( <> {!data ? "" : !(data.content.length > 0) ? "" :
{data.content.map((item: any) => { return ( {/* eslint-disable-next-line @next/next/no-img-element */}

{item.name}

); })}
} ); };