1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Migrate NFO Settings to React

This commit is contained in:
viown 2025-03-04 19:46:54 +03:00
parent e80b890bd2
commit 10d731e697
8 changed files with 240 additions and 120 deletions

View file

@ -0,0 +1,36 @@
import Button from '@mui/material/Button';
import Dialog, { type DialogProps } from '@mui/material/Dialog';
import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';
import globalize from 'lib/globalize';
import React from 'react';
interface SimpleAlertDialog extends DialogProps {
title: string;
text: string;
onClose: () => void
};
const SimpleAlert = ({ open, title, text, onClose }: SimpleAlertDialog) => {
return (
<Dialog open={open} onClose={onClose}>
<DialogTitle>
{title}
</DialogTitle>
<DialogContent>
<DialogContentText>
{text}
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={onClose}>
{globalize.translate('ButtonGotIt')}
</Button>
</DialogActions>
</Dialog>
);
};
export default SimpleAlert;