full migration to scss

This commit is contained in:
Nate 2025-01-17 20:16:57 -03:00
parent 2bd4b69926
commit 8192e5d8f1

View File

@ -0,0 +1,40 @@
import { useTranslation } from "react-i18next";
import { Modal, Button } from "@renderer/components";
interface AddThemeModalProps {
visible: boolean;
onClose: () => void;
onAddTheme: () => void;
}
export function AddThemeModal({
visible,
onClose,
onAddTheme,
}: AddThemeModalProps) {
const { t } = useTranslation("settings");
return (
<Modal title={t("add_theme")} visible={visible} onClose={onClose}>
<div className="add-theme-modal">
<form
onSubmit={(e) => {
e.preventDefault();
onAddTheme();
}}
>
<div className="modal-content">{/* placeholder for now */}</div>
<div className="modal-footer">
<Button type="button" theme="outline" onClick={onClose}>
{t("cancel")}
</Button>
<Button type="submit" theme="primary">
{t("add")}
</Button>
</div>
</form>
</div>
</Modal>
);
}