MCPcopy Create free account
hub / github.com/dailydotdev/apps / VideoModal

Function VideoModal

packages/shared/src/components/modals/VideoModal.tsx:14–43  ·  view source on GitHub ↗
({
  onRequestClose,
  src,
  title,
  ...props
}: VideoModalProps)

Source from the content-addressed store, hash-verified

12}
13
14export default function VideoModal({
15 onRequestClose,
16 src,
17 title,
18 ...props
19}: VideoModalProps): ReactElement {
20 return (
21 <Modal
22 className="px-8"
23 kind={ModalKind.FlexibleCenter}
24 size={ModalSize.XLarge}
25 onRequestClose={onRequestClose}
26 {...props}
27 >
28 <ModalClose
29 size={ButtonSize.Small}
30 top="3"
31 right="3"
32 onClick={onRequestClose}
33 />
34 <iframe
35 className="aspect-video w-full border-none"
36 src={src}
37 title={title}
38 allow="encrypted-media;web-share"
39 allowFullScreen
40 />
41 </Modal>
42 );
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected