summaryrefslogtreecommitdiff
path: root/frontend/src/components/TitleView.tsx
diff options
context:
space:
mode:
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;