Socialify

Folder ..

Viewing EmbedPlayer.tsx
18 lines (15 loc) • 385.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import React from 'react';
import styled from 'styled-components';

const Container = styled.div``;

const Iframe = styled.iframe`
  border-radius: var(--global-border-radius);
  border: none;
  min-height: 16.24rem;
`;

export const EmbedPlayer: React.FC<{ src: string }> = ({ src }) => {
  return (
    <Container>
      <Iframe src={src} allowFullScreen />
    </Container>
  );
};