Fakultas Ilmu Komputer UI

types.ts 339 Bytes
Newer Older
1
2
3
4
import { ReactNode } from 'react';

export interface Props {
  components: ReactNode[];
5
  currentStep: number;
6
  setCurrentStep: (_: number) => void;
7
8
  finishButtonLabel?: string;
  onFinish: () => void;
9
10
  isLoading?: boolean;
  isNextDisabled?: boolean;
11
12
13
14
}

export interface NextButtonProps {
  goNext: () => void;
15
  disabled?: boolean;
16
}