clawchain/dex-app/components/BackButton.tsx
2026-05-15 19:18:10 +03:00

25 lines
461 B
TypeScript

import React, { FC } from "react";
import { IconButton } from "@chakra-ui/react";
import { useRouter } from "next/router";
import BackIcon from "components/icons/BackIcon";
type Props = {};
const BackButton: FC<Props> = () => {
const router = useRouter();
return (
<IconButton
aria-label="Back"
size="xs"
isRound
icon={<BackIcon />}
variant="icon"
onClick={router.back}
/>
);
};
export default BackButton;