import { Card } from "antd"; import BackIcon from "components/Icons/BackIcon"; import NextIcon from "components/Icons/NextIcon"; import { useAppSelector } from "redux/hooks"; import ProTitle from "../ProTitle"; import styles from "./InfoButton.module.css"; export const InfoButton = ({ icon, title, onInfoClick, }: { icon: React.ReactNode; title: string; onInfoClick: () => void; }) => { const { isRTL } = useAppSelector((state) => state.locale); return (
{icon} {title}
{isRTL ? ( ) : ( )}
); };