summaryrefslogtreecommitdiff
path: root/src/components/NowPlayingSummary.tsx
blob: adc5d1054c499f6c64ffb248eb7c8c849b386a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>
  );
}