Add WIP external action buttons
This commit is contained in:
18
web/components/action-buttons/ExternalActionButton.tsx
Normal file
18
web/components/action-buttons/ExternalActionButton.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Button } from 'antd';
|
||||
import { ExternalAction } from '../interfaces/external-action.interface';
|
||||
|
||||
interface Props {
|
||||
action: ExternalAction;
|
||||
}
|
||||
|
||||
export default function ExternalActionButton(props: Props) {
|
||||
const { action } = props;
|
||||
const { url, title, description, icon, color, openExternally } = action;
|
||||
|
||||
return (
|
||||
<Button type="primary" style={{ backgroundColor: color }}>
|
||||
<img src={icon} width="30px" alt={description} />
|
||||
{title}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user