You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.8 KiB
TypeScript
53 lines
1.8 KiB
TypeScript
2 years ago
|
import { t } from "../../i18n";
|
||
2 years ago
|
import { useTunnels } from "../../context/tunnels";
|
||
2 years ago
|
import {
|
||
|
WelcomeScreenHelpArrow,
|
||
|
WelcomeScreenMenuArrow,
|
||
|
WelcomeScreenTopToolbarArrow,
|
||
|
} from "../icons";
|
||
|
|
||
|
const MenuHint = ({ children }: { children?: React.ReactNode }) => {
|
||
2 years ago
|
const { WelcomeScreenMenuHintTunnel } = useTunnels();
|
||
2 years ago
|
return (
|
||
2 years ago
|
<WelcomeScreenMenuHintTunnel.In>
|
||
2 years ago
|
<div className="virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--menu">
|
||
|
{WelcomeScreenMenuArrow}
|
||
|
<div className="welcome-screen-decor-hint__label">
|
||
|
{children || t("welcomeScreen.defaults.menuHint")}
|
||
|
</div>
|
||
2 years ago
|
</div>
|
||
2 years ago
|
</WelcomeScreenMenuHintTunnel.In>
|
||
2 years ago
|
);
|
||
|
};
|
||
|
MenuHint.displayName = "MenuHint";
|
||
|
|
||
|
const ToolbarHint = ({ children }: { children?: React.ReactNode }) => {
|
||
2 years ago
|
const { WelcomeScreenToolbarHintTunnel } = useTunnels();
|
||
2 years ago
|
return (
|
||
2 years ago
|
<WelcomeScreenToolbarHintTunnel.In>
|
||
2 years ago
|
<div className="virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--toolbar">
|
||
|
<div className="welcome-screen-decor-hint__label">
|
||
|
{children || t("welcomeScreen.defaults.toolbarHint")}
|
||
|
</div>
|
||
|
{WelcomeScreenTopToolbarArrow}
|
||
2 years ago
|
</div>
|
||
2 years ago
|
</WelcomeScreenToolbarHintTunnel.In>
|
||
2 years ago
|
);
|
||
|
};
|
||
|
ToolbarHint.displayName = "ToolbarHint";
|
||
|
|
||
|
const HelpHint = ({ children }: { children?: React.ReactNode }) => {
|
||
2 years ago
|
const { WelcomeScreenHelpHintTunnel } = useTunnels();
|
||
2 years ago
|
return (
|
||
2 years ago
|
<WelcomeScreenHelpHintTunnel.In>
|
||
2 years ago
|
<div className="virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--help">
|
||
|
<div>{children || t("welcomeScreen.defaults.helpHint")}</div>
|
||
|
{WelcomeScreenHelpArrow}
|
||
|
</div>
|
||
2 years ago
|
</WelcomeScreenHelpHintTunnel.In>
|
||
2 years ago
|
);
|
||
|
};
|
||
|
HelpHint.displayName = "HelpHint";
|
||
|
|
||
|
export { HelpHint, MenuHint, ToolbarHint };
|