добавлен объект локализаци

This commit is contained in:
DmitriyB
2022-07-26 17:58:30 +05:00
parent 2cb028ae16
commit 0a550593e5
6 changed files with 128 additions and 5 deletions
+21
View File
@@ -0,0 +1,21 @@
import React from "react";
type TProps = {
textButton: string
onClick?: () => void
type?: 'submit' | 'button'
width?: '100%' | string
}
export const PinkButton:React.FC<TProps> = React.memo((props) => {
return <button
style={{width: props.width ? props.width : ''}}
className="main-part-text-button"
onClick={() => {
return props?.onClick ? props.onClick() : null;
}}
type={props.type ? props.type : 'button'}
>
{props.textButton}
</button>
})