import * as React from 'react';
import { isTwitch, TwitchVideo } from './twitch';
import { YouTubeVideo } from './youtube';

export const ExternalVideo = ({ url }: { url: string }) => {
  return !isTwitch(url) ? <YouTubeVideo url={url} /> : <TwitchVideo url={url} />;
};
