/
TimurIsm
/
OpenEyes
Обзор
Документация
Войти
/
TimurIsm
/
OpenEyes
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
front/src/buttons/ModalButton.jsx
38 строк
1 KB
IsmTimur
Initial commit: added backend (Express) and frontend (React Vite)
19 июн 2025, 18:32
19 июн 2025, 18:32
6cf6155
Код
Авторство
О чём код?
import React from 'react'; export const ActionButton = ({ onClick, children, className }) => ( <button onClick={onClick} className={`p-2 text-md font-medium rounded-lg focus:ring-4 focus:outline-none ${className}`} > {children} </button> ); export const AddButton = ({ onClick }) => ( <ActionButton onClick={onClick} className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-blue-300 px-5 py-2.5" > Добавить </ActionButton> ); export const SaveButton = ({ onClick }) => ( <ActionButton onClick={onClick} className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-blue-300 px-5 py-2.5" > Сохранить </ActionButton> ); export const CancelButton = ({ onClick }) => ( <ActionButton onClick={onClick} className="text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:ring-gray-100 px-5 py-2.5" > Отменить </ActionButton> );