mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update icon button component
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { FC } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import Image from 'next/image';
|
||||
interface Props {
|
||||
icon: string;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
const Btn = styled.button`
|
||||
display: inline;
|
||||
@@ -11,11 +15,6 @@ const Btn = styled.button`
|
||||
outline: none;
|
||||
`;
|
||||
|
||||
export interface Props {
|
||||
icon: string;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
const IconButton: FC<Props> = ({ icon, onClick }) => {
|
||||
return (
|
||||
<Btn onClick={onClick}>
|
||||
|
||||
Reference in New Issue
Block a user