mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-28 09:56:23 +02:00
14 lines
No EOL
288 B
TypeScript
14 lines
No EOL
288 B
TypeScript
'use client';
|
|
|
|
import { useFormStatus } from "react-dom";
|
|
import { Button, ButtonProps } from "@heroui/react";
|
|
|
|
export function FormStatusButton({
|
|
props
|
|
}: {
|
|
props: ButtonProps;
|
|
}) {
|
|
const { pending } = useFormStatus();
|
|
|
|
return <Button {...props} isLoading={pending} />;
|
|
} |