import { useDispatch } from "react-redux" import { setAddPopUp } from "@/redux/features/services-slice" import { useTranslations } from "next-intl"; export default function AddNewButton() { // setup needed varibles const dispatch = useDispatch() const t = useTranslations('services'); // handle the open of the pop up function handleClickOpen() { dispatch(setAddPopUp(true)) } // return the component ui return ( ) }