diff options
| author | David Beall <beallio@users.noreply.github.com> | 2026-08-02 14:26:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 17:26:12 -0400 |
| commit | b4b8be3297e427dad6fbc6697ffdb765a796f7fd (patch) | |
| tree | e69393cf2748df50a08c2128e7d20c9df542b0c5 /frontend/src/components/modals/PluginInstallProgress.tsx | |
| parent | 3e4302e2e58f39d6289d95a64edbb931f3831668 (diff) | |
| download | decky-loader-main.tar.gz decky-loader-main.zip | |
Co-authored-by: David Beall <6121439+beallio@users.noreply.github.com>
Diffstat (limited to 'frontend/src/components/modals/PluginInstallProgress.tsx')
| -rw-r--r-- | frontend/src/components/modals/PluginInstallProgress.tsx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/frontend/src/components/modals/PluginInstallProgress.tsx b/frontend/src/components/modals/PluginInstallProgress.tsx new file mode 100644 index 00000000..14fe9f34 --- /dev/null +++ b/frontend/src/components/modals/PluginInstallProgress.tsx @@ -0,0 +1,31 @@ +import { Field, ProgressBar } from '@decky/ui'; +import { FC } from 'react'; + +interface PluginInstallProgressProps { + percentage: number; + operationText: string | null; +} + +const PluginInstallProgress: FC<PluginInstallProgressProps> = ({ percentage, operationText }) => { + return ( + <div style={{ width: '100%', margin: '16px 0 0' }}> + <Field bottomSeparator="none" childrenLayout="below" focusable={false} padding="standard"> + <div style={{ width: '100%' }}> + <div + style={{ + minHeight: '22px', + width: '100%', + textAlign: 'left', + textTransform: 'uppercase', + }} + > + {operationText} + </div> + <ProgressBar focusable={false} nProgress={percentage} /> + </div> + </Field> + </div> + ); +}; + +export default PluginInstallProgress; |
