import type { ActivityField } from '@/admin/api/activities';
import { __ } from '@wordpress/i18n';
import { Calendar, FileUp } from 'lucide-react';
import ContentBlock from './content-block';
import { FormCard, QuestionInput } from './form-card';
import OptionsEditor from './options-editor';
import WpMediaBlock from './wp-media-block';
type Props = {
field: ActivityField;
onChange: (f: ActivityField) => void;
onSlashTrigger: () => void;
};
const FieldContent = ({ field, onChange, onSlashTrigger }: Props) => {
switch (field.type) {
case 'content':
return ;
case 'short_text':
return (
onChange({ ...field, required })}
>
{__('Short answer…', 'allcoach')}
);
case 'long_text':
return (
onChange({ ...field, required })}
>
{__('Long answer…', 'allcoach')}
);
case 'multiple_choice':
case 'checkbox':
return (
onChange({ ...field, required })}
>
);
case 'date':
return (
onChange({ ...field, required })}
>
{__('Date picker…', 'allcoach')}
);
case 'file':
return (
onChange({ ...field, required })}
>
{__('File upload zone', 'allcoach')}
);
case 'image':
case 'video':
case 'audio':
return ;
}
};
export default FieldContent;