'use client'; import React, { HTMLAttributes } from 'react'; import { motion } from 'framer-motion'; import { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; export type DocumentFlowFormContainerProps = HTMLAttributes & { children?: React.ReactNode; }; export const DocumentFlowFormContainer = ({ children, id = 'document-flow-form-container', className, ...props }: DocumentFlowFormContainerProps) => { return (
{children}
); }; export type DocumentFlowFormContainerHeaderProps = { title: string; description: string; }; export const DocumentFlowFormContainerHeader = ({ title, description, }: DocumentFlowFormContainerHeaderProps) => { return ( <>

{title}

{description}


); }; export type DocumentFlowFormContainerContentProps = HTMLAttributes & { children?: React.ReactNode; }; export const DocumentFlowFormContainerContent = ({ children, className, ...props }: DocumentFlowFormContainerContentProps) => { return (
{children}
); }; export type DocumentFlowFormContainerFooterProps = HTMLAttributes & { children?: React.ReactNode; }; export const DocumentFlowFormContainerFooter = ({ children, className, ...props }: DocumentFlowFormContainerFooterProps) => { return (
{children}
); }; export type DocumentFlowFormContainerStepProps = { title: string; step: number; maxStep: number; }; export const DocumentFlowFormContainerStep = ({ step, maxStep, }: DocumentFlowFormContainerStepProps) => { return (

Step {`${step} of ${maxStep}`}

); }; export type DocumentFlowFormContainerActionsProps = { canGoBack?: boolean; canGoNext?: boolean; goNextLabel?: string; goBackLabel?: string; onGoBackClick?: () => void; onGoNextClick?: () => void; loading?: boolean; disabled?: boolean; }; export const DocumentFlowFormContainerActions = ({ canGoBack = true, canGoNext = true, goNextLabel = 'Continue', goBackLabel = 'Go Back', onGoBackClick, onGoNextClick, loading, disabled, }: DocumentFlowFormContainerActionsProps) => { return (
); };