summaryrefslogtreecommitdiff
path: root/frontend/src/components/TitleView.tsx
diff options
context:
space:
mode:
authorJonas Dellinger <jonas@dellinger.dev>2022-05-26 13:30:14 +0200
committerJonas Dellinger <jonas@dellinger.dev>2022-05-26 13:30:14 +0200
commit71dd0ea449469ed38e784b9c73b673eece680446 (patch)
tree15914a2b7979296b8c04cac0e75191eb9f955919 /frontend/src/components/TitleView.tsx
parenta06efc08bc01a4a014d916ff1e219a0f17d0c480 (diff)
parent4b923c1dc70eaa4a3ca58d9e9f3218785b2fe919 (diff)
downloaddecky-loader-71dd0ea449469ed38e784b9c73b673eece680446.tar.gz
decky-loader-71dd0ea449469ed38e784b9c73b673eece680446.zip
Cleanup after merge
Diffstat (limited to 'frontend/src/components/TitleView.tsx')
-rw-r--r--frontend/src/components/TitleView.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/frontend/src/components/TitleView.tsx b/frontend/src/components/TitleView.tsx
new file mode 100644
index 00000000..4b4a6825
--- /dev/null
+++ b/frontend/src/components/TitleView.tsx
@@ -0,0 +1,20 @@
+import { staticClasses } from 'decky-frontend-lib';
+import { VFC } from 'react';
+
+import { useDeckyState } from './DeckyState';
+
+const TitleView: VFC = () => {
+ const { activePlugin } = useDeckyState();
+
+ if (activePlugin === null) {
+ return <div className={staticClasses.Title}>Decky</div>;
+ }
+
+ return (
+ <div className={staticClasses.Title} style={{ paddingLeft: '60px' }}>
+ {activePlugin.name}
+ </div>
+ );
+};
+
+export default TitleView;