summaryrefslogtreecommitdiff
path: root/src/components/InstructionCard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/InstructionCard.tsx')
-rw-r--r--src/components/InstructionCard.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/InstructionCard.tsx b/src/components/InstructionCard.tsx
new file mode 100644
index 0000000..fdf6755
--- /dev/null
+++ b/src/components/InstructionCard.tsx
@@ -0,0 +1,23 @@
+import { PanelSectionRow } from "@decky/ui";
+import { MESSAGES, STYLES } from "../utils/constants";
+
+interface InstructionCardProps {
+ pathExists: boolean | null;
+}
+
+export function InstructionCard({ pathExists }: InstructionCardProps) {
+ if (pathExists !== true) return null;
+
+ return (
+ <PanelSectionRow>
+ <div style={STYLES.instructionCard}>
+ <div style={{ fontWeight: 'bold', marginBottom: '8px', color: 'var(--decky-accent-text)' }}>
+ {MESSAGES.instructionTitle}
+ </div>
+ <div style={{ whiteSpace: 'pre-line' }}>
+ {MESSAGES.instructionText}
+ </div>
+ </div>
+ </PanelSectionRow>
+ );
+}