anyone-oslo/pages

View on GitHub
app/javascript/components/RichTextArea/ToolbarButton.tsx

Summary

Maintainability
A
0 mins
Test Coverage
type Props = {
  className: string;
  name: string;
  onClick: (evt: React.MouseEvent) => void;
};

export default function ToolbarButton(props: Props) {
  return (
    <a
      title={props.name}
      className={"button " + props.className}
      onClick={props.onClick}>
      <i className={"fa-solid fa-" + props.className} />
    </a>
  );
}