/
githubmirror
/
OpenAgents
Обзор
Документация
Войти
/
githubmirror
/
OpenAgents
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
frontend/components/Buttons/SidebarActionButton/SidebarActionButton.tsx
19 строк
448 B
Impavidity
Update: add frontend code
14 окт 2023, 20:07
14 окт 2023, 20:07
478f036
Код
Авторство
О чём код?
import { MouseEventHandler, ReactElement } from 'react'; interface Props { handleClick: MouseEventHandler<HTMLButtonElement>; children: ReactElement; title: string; } const SidebarActionButton = ({ handleClick, children, title }: Props) => ( <button className="min-w-[20px] p-1 text-neutral-400 hover:text-neutral-100" onClick={handleClick} title={title} > {children} </button> ); export default SidebarActionButton;