maccounter
22 строки · 492.0 Байт
1import { BaseProps } from '@localTypes/BaseProps'
2import clsx from 'clsx'
3import React, { Ref } from 'react'
4import classes from './Button.module.scss'
5
6interface ButtonProps extends BaseProps {
7ref?: Ref<HTMLButtonElement>
8}
9
10const Button: React.FC<ButtonProps> = React.forwardRef(({ children }, ref) => (
11<button
12type="button"
13ref={ref}
14className={clsx(
15classes.button,
16)}
17>
18{children}
19</button>
20))
21
22export default Button
23