summaryrefslogtreecommitdiff
path: root/src/components/NowPlayingSummary.tsx
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-09-11 10:51:55 -0400
committerGitHub <noreply@github.com>2026-09-11 10:51:55 -0400
commitbc73d150230f92d614962f7384a7430cf64dcd14 (patch)
treeb6ec78ab8663c3da2e0745db8fb98bbb7303e6e2 /src/components/NowPlayingSummary.tsx
parent904e2e6131071c3b132d3148947b613c2830b1bb (diff)
parent6597df7865b4eb5fce574d5efda1e33680df4357 (diff)
downloaddecky-lsfg-vk-bc73d150230f92d614962f7384a7430cf64dcd14.tar.gz
decky-lsfg-vk-bc73d150230f92d614962f7384a7430cf64dcd14.zip
Merge pull request #263 from xXJSONDeruloXx/v2-now-playing
flatpak correctness, ui alignment, tests
Diffstat (limited to 'src/components/NowPlayingSummary.tsx')
-rw-r--r--src/components/NowPlayingSummary.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/NowPlayingSummary.tsx b/src/components/NowPlayingSummary.tsx
new file mode 100644
index 0000000..adc5d10
--- /dev/null
+++ b/src/components/NowPlayingSummary.tsx
@@ -0,0 +1,16 @@
+import { Field, PanelSection, PanelSectionRow } from "@decky/ui";
+
+interface Props {
+ title: string;
+ details: string[];
+}
+
+export function NowPlayingSummary({ title, details }: Props) {
+ return (
+ <PanelSection>
+ <PanelSectionRow>
+ <Field label={title} description={details.filter(Boolean).join(" | ")} />
+ </PanelSectionRow>
+ </PanelSection>
+ );
+}