diff options
Diffstat (limited to 'frontend/src/components/patchnotes')
| -rw-r--r-- | frontend/src/components/patchnotes/InlinePatchNotes.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/src/components/patchnotes/InlinePatchNotes.tsx b/frontend/src/components/patchnotes/InlinePatchNotes.tsx new file mode 100644 index 00000000..84861c04 --- /dev/null +++ b/frontend/src/components/patchnotes/InlinePatchNotes.tsx @@ -0,0 +1,21 @@ +import { Focusable, updaterFieldClasses } from 'decky-frontend-lib'; +import { FunctionComponent, ReactNode } from 'react'; + +interface InlinePatchNotesProps { + date: ReactNode; + title: string; + children: ReactNode; + onClick?: () => void; +} + +const InlinePatchNotes: FunctionComponent<InlinePatchNotesProps> = ({ date, title, children, onClick }) => { + return ( + <Focusable className={updaterFieldClasses.PatchNotes} onActivate={onClick}> + <div className={updaterFieldClasses.PostedTime}>{date}</div> + <div className={updaterFieldClasses.EventDetailTitle}>{title}</div> + <div className={updaterFieldClasses.EventDetailsBody}>{children}</div> + </Focusable> + ); +}; + +export default InlinePatchNotes; |
