You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
502 B
21 lines
502 B
import { Button } from 'antd'; |
|
import { BellFilled } from '@ant-design/icons'; |
|
import { FC } from 'react'; |
|
import styles from './ActionButton/ActionButton.module.scss'; |
|
|
|
export type NotifyButtonProps = { |
|
text?: string; |
|
onClick?: () => void; |
|
}; |
|
|
|
export const NotifyButton: FC<NotifyButtonProps> = ({ onClick, text }) => ( |
|
<Button |
|
type="primary" |
|
className={`${styles.button}`} |
|
icon={<BellFilled />} |
|
onClick={onClick} |
|
id="notify-button" |
|
> |
|
{text || 'Notify'} |
|
</Button> |
|
);
|
|
|