-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5b355b8
commit 8535316
Showing
4 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
import {h} from 'preact'; | ||
import {ui} from '@playkit-js/kaltura-player-js'; | ||
import {Button, ButtonType, ButtonSize} from '@playkit-js/common/dist/components/button'; | ||
import {OnClickEvent} from '@playkit-js/common/dist/hoc/a11y-wrapper'; | ||
import * as styles from './attach-placeholder.scss'; | ||
|
||
const {Text} = ui.preacti18n; | ||
|
||
interface AttachPlaceholderProps { | ||
onAttach: () => void; | ||
onClose: (e: OnClickEvent, byKeyboard: boolean) => void; | ||
} | ||
|
||
export const AttachPlaceholder = ({onAttach}: AttachPlaceholderProps) => { | ||
export const AttachPlaceholder = ({onAttach, onClose}: AttachPlaceholderProps) => { | ||
return ( | ||
<div className={styles.attachPlaceholderContainer} data-testid="transcriptAttachPlaceholder"> | ||
<div className={styles.attachText}> | ||
<Text id="transcript.attachTranscriptText">Transcript popped out</Text> | ||
<div className={styles.attachHeader}> | ||
<div className={styles.attachHeaderTitle}> | ||
<Text id="transcript.transcript">Transcript</Text> | ||
</div> | ||
<Button type={ButtonType.borderless} size={ButtonSize.medium} icon={'close'} onClick={onClose}/> | ||
</div> | ||
<div className={styles.attachContent}> | ||
<div className={styles.attachText}> | ||
<Text id="transcript.attachTranscriptText">Transcript popped out</Text> | ||
</div> | ||
<Button type={ButtonType.primary} size={ButtonSize.medium} className={styles.attachButton} onClick={onAttach} testId="transcriptAttachButton"> | ||
<Text id="transcript.attachTranscriptButton">Bring it back</Text> | ||
</Button> | ||
</div> | ||
<Button type={ButtonType.primary} size={ButtonSize.medium} className={styles.attachButton} onClick={onAttach} testId="transcriptAttachButton"> | ||
<Text id="transcript.attachTranscriptButton">Bring it back</Text> | ||
</Button> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters