| 123456789101112131415161718192021222324252627 |
- import type { ButtonHTMLAttributes, DetailedHTMLProps, JSX } from 'react';
- import { Hexagon } from './Hexagon';
- import styles from './CreateButton.module.scss';
- const moduleClass = styles['btn-create'];
- type Props = DetailedHTMLProps<
- ButtonHTMLAttributes<HTMLButtonElement>,
- HTMLButtonElement
- >;
- export const CreateButton = (props: Props): JSX.Element => {
- return (
- <button
- type="button"
- {...props}
- className={`${moduleClass} btn btn-primary ${props.className ?? ''}`}
- >
- <Hexagon />
- <span className="icon material-symbols-outlined position-absolute">
- edit
- </span>
- </button>
- );
- };
|