diff --git a/components/IconButton.tsx b/components/IconButton.tsx index f714e0c..9e1b0d2 100644 --- a/components/IconButton.tsx +++ b/components/IconButton.tsx @@ -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 = ({ icon, onClick }) => { return (