diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-09-11 10:23:23 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-09-11 10:23:23 -0400 |
| commit | 6597df7865b4eb5fce574d5efda1e33680df4357 (patch) | |
| tree | b6ec78ab8663c3da2e0745db8fb98bbb7303e6e2 /src/components/NowPlayingSummary.tsx | |
| parent | 0be6ccdd1a8ecfe386281451cf4c49d052f6dda4 (diff) | |
| download | decky-lsfg-vk-6597df7865b4eb5fce574d5efda1e33680df4357.tar.gz decky-lsfg-vk-6597df7865b4eb5fce574d5efda1e33680df4357.zip | |
compact now playing infov2-now-playing
Diffstat (limited to 'src/components/NowPlayingSummary.tsx')
| -rw-r--r-- | src/components/NowPlayingSummary.tsx | 16 |
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> + ); +} |
