interface Props {
    episode: number;
    title: string;
    title_items	: string;
    description: string;
    guid: string;
    pubDate: string;
    duration: number;
    urlImg: string;
    fileSize: number;
    audio: string;
    webSite: string;
    nameCompanies: string;
}

export const Items = (data: Props) => {
        let item =`
        <item>
          <itunes:episodeType>full</itunes:episodeType>
          <itunes:episode>`+data.episode+`</itunes:episode>
          <itunes:season>1</itunes:season>
          <title><![CDATA[`+data.title+': '+data.title_items	+`]]></title>
          <description><![CDATA[`+data.description+`]]></description>
          <googleplay:description>`+data.description+`</googleplay:description>
          <itunes:summary>`+data.description+`</itunes:summary>
          <guid isPermaLink="false">`+data.guid+`</guid>
          <pubDate>`+data.pubDate+`</pubDate>
          <itunes:duration>`+data.duration+`</itunes:duration>
          <link>`+data.webSite+'/podcast/'+data.guid+`</link>
          <googleplay:image href="`+data.webSite+'/img/'+data.urlImg+`"/>
          <itunes:image href="`+data.webSite+'/img/'+data.urlImg+`"/>
          <googleplay:explicit>no</googleplay:explicit>
          <itunes:explicit>false</itunes:explicit>
          <enclosure url="`+data.webSite+'/audio/'+data.audio+`" length="`+data.fileSize+`" type="audio/mpeg"/>
          <media:title>`+data.title+': '+data.title_items	+`</media:title>
          <media:content url="`+data.webSite+'/audio/'+data.audio+`" fileSize="`+data.fileSize+`" type="audio/mpeg" medium="audio" isDefault="true" expression="full" bitrate="320" channels="2" duration="`+data.duration+`" lang="ru"/>
          <media:thumbnail url="`+data.webSite+'/img/'+data.urlImg+`" width="150" height="150"/>
          <media:copyright url="`+data.webSite+`">© 2022 `+data.nameCompanies+`</media:copyright>
          <creativeCommons:license>https://creativecommons.org/licenses/by/4.0/</creativeCommons:license>
        </item>`;
      return(item)
};
