mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 12:33:25 +00:00
31 lines
866 B
TypeScript
31 lines
866 B
TypeScript
import { useCallback } from 'react';
|
|
|
|
import { Button } from '~components/Button';
|
|
import { Icon } from '~components/Icon';
|
|
|
|
import './SetupScreen.css';
|
|
|
|
export function SetupScreen() {
|
|
const open = useCallback(() => {
|
|
const url = (chrome || browser).runtime.getURL(`/tabs/PermissionRequest.html`);
|
|
(chrome || browser).tabs.create({ url });
|
|
}, []);
|
|
|
|
return (
|
|
<div className="setup-screen">
|
|
<div className="top">
|
|
<div className="icon">
|
|
<Icon name="logo" />
|
|
</div>
|
|
<h1 className="title">Let's get this set up!</h1>
|
|
<p className="paragraph" style={{ paddingBottom: 25, paddingTop: 10 }}>
|
|
To get started, we need to setup some things first. Click the button below to continue.
|
|
</p>
|
|
</div>
|
|
<Button onClick={open} full>
|
|
Continue
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|