# All files / src/Tile/mocks iframe.tsx

57.14% Statements 4/7
0% Branches 0/2
0% Functions 0/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    321x

    1x

    1x

    1x
     import React from 'react'

    const iframeHtml = `
    <html style="
        height: 100%;
        width: 100%;
    ">
        <head></head>
        <body style="
          height: 100%;
          width: 100%;
          margin: 0;
        ">
            <video style="width: 100%;height: 100%;position: absolute;background: black;" top:="" 0;="" left:="">
                <source src="static/media/src/components/Tile/mocks/video.mp4" type="video/mp4">
                Your browser doesn't support HTML5 video tag.
            </video>
        </body>
    </html>`

    const Iframe = ({ title = 'Video player' }) => (
      <iframe
        width="400px"
        height="225px"
        srcDoc={iframeHtml}
        title={title}
        frameBorder="0"
      />
    )

    export default Iframe