mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
import * as React from "react";
|
|
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,
|
|
}) => {
|
|
return (
|
|
<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>
|
|
);
|
|
};
|