|
|
|
|
@ -1,6 +1,8 @@ |
|
|
|
|
import React from 'react' |
|
|
|
|
import type { MouseEvent } from 'react' |
|
|
|
|
|
|
|
|
|
import { Link } from 'react-router-dom' |
|
|
|
|
|
|
|
|
|
import { CloseButton } from 'features/Common' |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
@ -13,26 +15,38 @@ import { |
|
|
|
|
} from '../styled' |
|
|
|
|
|
|
|
|
|
type CardLiveHoverProps = { |
|
|
|
|
id: number, |
|
|
|
|
onClose: () => void, |
|
|
|
|
sportName: string, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const stopProp = (e: MouseEvent<HTMLDivElement>) => { |
|
|
|
|
e.stopPropagation() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const CardLiveHover = ({ onClose }: CardLiveHoverProps) => ( |
|
|
|
|
export const CardLiveHover = ({ |
|
|
|
|
id, |
|
|
|
|
onClose, |
|
|
|
|
sportName, |
|
|
|
|
}: CardLiveHoverProps) => ( |
|
|
|
|
<CardHoverWrapper onClick={onClose}> |
|
|
|
|
<CardHoverInner> |
|
|
|
|
<CloseButton onClick={onClose} /> |
|
|
|
|
<CardHoverTitle t='match_video' /> |
|
|
|
|
<Rows onClick={stopProp}> |
|
|
|
|
<Row> |
|
|
|
|
<MoreVideo t='watch_now' /> |
|
|
|
|
<MoreVideo t='watch_from_beginning' /> |
|
|
|
|
<Link to={`${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_now' /> |
|
|
|
|
</Link> |
|
|
|
|
<Link to={`${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_from_beginning' /> |
|
|
|
|
</Link> |
|
|
|
|
</Row> |
|
|
|
|
|
|
|
|
|
<Row> |
|
|
|
|
<MoreVideo t='watch_from_last_pause' /> |
|
|
|
|
<Link to={`${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_from_last_pause' /> |
|
|
|
|
</Link> |
|
|
|
|
</Row> |
|
|
|
|
</Rows> |
|
|
|
|
</CardHoverInner> |
|
|
|
|
|