mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-03 16:30:00 +00:00
22 lines
721 B
TypeScript
22 lines
721 B
TypeScript
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;
|