28 lines
631 B
TypeScript
Executable File
28 lines
631 B
TypeScript
Executable File
import React from 'react';
|
|
import PlanForm from './form';
|
|
|
|
interface Plan {
|
|
id: number;
|
|
name: string;
|
|
price: number;
|
|
yearly_price: number | null;
|
|
duration: string;
|
|
description: string | null;
|
|
max_users: number;
|
|
max_employees: number;
|
|
storage_limit: number;
|
|
enable_chatgpt: string;
|
|
is_trial: string | null;
|
|
trial_day: number;
|
|
is_plan_enable: string;
|
|
is_default: boolean;
|
|
}
|
|
|
|
interface Props {
|
|
plan: Plan;
|
|
otherDefaultPlanExists: boolean;
|
|
}
|
|
|
|
export default function EditPlan({ plan, otherDefaultPlanExists }: Props) {
|
|
return <PlanForm plan={plan} otherDefaultPlanExists={otherDefaultPlanExists} />;
|
|
} |