refactoring, using different pattern for page injection and reusing same pattern for both popup and content scripts
This commit is contained in:
14
src/views/components/common/Button/Button.tsx
Normal file
14
src/views/components/common/Button/Button.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import styles from './Button.module.scss';
|
||||
|
||||
interface Props {
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
export function Button(props: React.PropsWithChildren<Props>): JSX.Element {
|
||||
return (
|
||||
<button className={styles.button} onClick={props.onClick}>
|
||||
{props.children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user