Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

490 B
Raw Blame
"use client"
import { Button } from '@/components/atoms/Button/Button';
import { cn } from "@/lib/utils"
import { useRouter } from "next/navigation"

interface RefreshButtonProps {
  label: string | React.ReactNode
  className?: string
}

export function RefreshButton({ label, className }: RefreshButtonProps) {
  const router = useRouter()

  return (
    <Button
      onClick={() => router.refresh()}
      className={cn("max-w-fit", className)}
    >
      {label}
    </Button>
  )
}