Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

729 B
Raw Blame
import { Button } from 'antd';
import { FC } from 'react';
import dynamic from 'next/dynamic';
import { useTranslation } from 'next-export-i18n';
import styles from './ActionButton/ActionButton.module.scss';

// Lazy loaded components

const BellFilled = dynamic(() => import('@ant-design/icons/BellFilled'), {
  ssr: false,
});

export type NotifyButtonProps = {
  text?: string;
  onClick?: () => void;
};

export const NotifyButton: FC<NotifyButtonProps> = ({ onClick, text }) => {
  const { t } = useTranslation();

  return (
    <Button
      type="primary"
      className={styles.button}
      icon={<BellFilled />}
      onClick={onClick}
      id="notify-button"
    >
      {text || t('Notify')}
    </Button>
  );
};