'use client'; import type { HTMLAttributes } from 'react'; import React from 'react'; import type { MessageDescriptor } from '@lingui/core'; import { Trans, msg } from '@lingui/macro'; import { useLingui } from '@lingui/react'; import { motion } from 'framer-motion'; import { cn } from '../../lib/utils'; import { Button } from '../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: MessageDescriptor; description: MessageDescriptor; }; export const DocumentFlowFormContainerHeader = ({ title, description, }: DocumentFlowFormContainerHeaderProps) => { const { _ } = useLingui(); 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 = { step: number; maxStep: number; }; export const DocumentFlowFormContainerStep = ({ step, maxStep, }: DocumentFlowFormContainerStepProps) => { return (

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

); }; export type DocumentFlowFormContainerActionsProps = { canGoBack?: boolean; canGoNext?: boolean; goNextLabel?: MessageDescriptor; goBackLabel?: MessageDescriptor; onGoBackClick?: () => void; onGoNextClick?: () => void; loading?: boolean; disabled?: boolean; disableNextStep?: boolean; }; export const DocumentFlowFormContainerActions = ({ canGoBack = true, canGoNext = true, goNextLabel = msg`Continue`, goBackLabel = msg`Go Back`, onGoBackClick, onGoNextClick, loading, disabled, disableNextStep = false, }: DocumentFlowFormContainerActionsProps) => { const { _ } = useLingui(); return (
); };