import React from 'react'; import PageTitle from '../../elements/PageTitle/PageTitle'; import SideBar, {SideBarTitle} from '../../elements/SideBar/SideBar'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faUser} from '@fortawesome/free-solid-svg-icons'; import style from './ActorPage.module.css'; import VideoContainer from '../../elements/VideoContainer/VideoContainer'; import {APINode, callAPI} from '../../utils/Api'; import {ActorType} from '../../types/VideoTypes'; import {Link, withRouter} from 'react-router-dom'; import {RouteComponentProps} from 'react-router'; import {Button} from '../../elements/GPElements/Button'; import {ActorTypes, VideoTypes} from '../../types/ApiTypes'; interface state { data: VideoTypes.VideoUnloadedType[]; actor: ActorType; } /** * empty default props with id in url */ interface Props extends RouteComponentProps<{id: string}> {} /** * info page about a specific actor and a list of all its videos */ export class ActorPage extends React.Component { constructor(props: Props) { super(props); this.state = {data: [], actor: {ActorId: 0, Name: '', Thumbnail: ''}}; } render(): JSX.Element { return ( <>