mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import type {FC} from 'react';
|
|
import {Button} from '../../../components/Button/Button';
|
|
import {SettingsIcon} from '../../../components/icons/SettingsIcon';
|
|
import {GitHubIcon} from '../../../components/icons/GitHubIcon';
|
|
import {HeartIcon} from '../../../components/icons/HeartIcon';
|
|
import styles from './FooterActions.module.scss';
|
|
|
|
interface FooterActionsProps {
|
|
onSettings: () => void;
|
|
onGitHub: () => void;
|
|
onSupport: () => void;
|
|
}
|
|
|
|
export const FooterActions: FC<FooterActionsProps> = ({
|
|
onSettings,
|
|
onGitHub,
|
|
onSupport,
|
|
}) => (
|
|
<div className={styles.footer}>
|
|
<Button
|
|
variant="settings"
|
|
size="small"
|
|
className={styles.button}
|
|
onClick={onSettings}
|
|
>
|
|
<SettingsIcon />
|
|
<span>Settings</span>
|
|
</Button>
|
|
<Button
|
|
variant="github"
|
|
size="small"
|
|
className={styles.button}
|
|
onClick={onGitHub}
|
|
>
|
|
<GitHubIcon />
|
|
<span>GitHub</span>
|
|
</Button>
|
|
<Button
|
|
variant="support"
|
|
size="small"
|
|
className={styles.button}
|
|
onClick={onSupport}
|
|
>
|
|
<HeartIcon />
|
|
<span>Support</span>
|
|
</Button>
|
|
</div>
|
|
);
|