/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/libs/editor/src/components/Comments/Comment/CommentFormButtons.tsx
35 строк
1 KB
Raul Martin
feat: Migrate SCSS to plain CSS with PostCSS, replace Stylelint with Biome (#9584)
12 мар 2026, 20:57
Не верифицирован
12 мар 2026, 20:57
3f31128
Код
Авторство
О чём код?
import type { MouseEventHandler } from "react"; import { IconCommentLinkTo, IconSend } from "@humansignal/icons"; import { Tooltip } from "@humansignal/ui"; import { cn } from "../../../utils/bem"; import "./CommentFormButtons.prefix.css"; export const CommentFormButtons = ({ region, linking, onLinkTo, }: { region: any; linking: boolean; onLinkTo?: MouseEventHandler<HTMLElement>; }) => ( <div className={cn("comment-form-buttons").toClassName()}> <div className={cn("comment-form-buttons").elem("buttons").toClassName()}> {onLinkTo && !region && ( <Tooltip title="Link to..."> <button type="button" className={cn("comment-form-buttons").elem("action").mod({ highlight: linking }).toClassName()} onClick={onLinkTo} > <IconCommentLinkTo /> </button> </Tooltip> )} <button type="submit" className={cn("comment-form-buttons").elem("action").toClassName()}> <IconSend /> </button> </div> </div> );