import { useAppSelector } from "redux/hooks"; import { ProGray1 } from "ThemeConstants"; interface NextIconType { className?: string; onClick?: () => void; iconColor?: string; iconSize?: number; } const NextIcon = ({ className, onClick, iconColor, iconSize }: NextIconType) => { const { themeName } = useAppSelector((state) => state.theme); const color = iconColor || (themeName === "dark" ? "white" : ProGray1); return ( ); }; export default NextIcon;