-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay: Add example overlay as a template
- Loading branch information
1 parent
dc41fe4
commit 460874a
Showing
3 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as React from 'react'; | ||
import {observer} from 'mobx-react'; | ||
|
||
import {OverlayDescriptor} from 'src/overlay'; | ||
|
||
type Config = { | ||
/** | ||
* Should the | ||
*/ | ||
alginRight: boolean; | ||
}; | ||
|
||
const Overlay: React.FC<{config: Config}> = observer(() => { | ||
return <div>This is a cue counter</div>; | ||
}); | ||
|
||
const ConfigInterface: React.FC<{config: Config}> = observer(() => { | ||
return <div>This is the config interface</div>; | ||
}); | ||
|
||
const Example: React.FC<{config?: Config}> = () => { | ||
return <div>This is an example of the </div>; | ||
}; | ||
|
||
export type ExampleOverlay = { | ||
type: 'example'; | ||
config: Config; | ||
}; | ||
|
||
const descriptor: OverlayDescriptor<ExampleOverlay> = { | ||
type: 'example', | ||
name: 'Example Overlay Configuration', | ||
component: Overlay, | ||
configInterface: ConfigInterface, | ||
example: Example, | ||
defaultConfig: {}, | ||
}; | ||
|
||
export default descriptor; |
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
460874a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: