'use client'; import React from 'react'; import { Grid, Button, Divider, FormControl, InputLabel, Select, MenuItem } from '@mui/material'; import DeleteIcon from '@mui/icons-material/Delete'; import { useTheme } from '@mui/material/styles'; import ModelSelector from './ModelSelector'; import { playgroundStyles } from '@/styles/playground'; import { useTranslation } from 'react-i18next'; const PlaygroundHeader = ({ availableModels, selectedModels, handleModelSelection, handleClearConversations, conversations, outputMode, handleOutputModeChange }) => { const theme = useTheme(); const styles = playgroundStyles(theme); const { t } = useTranslation(); const isClearDisabled = selectedModels.length === 0 || Object.values(conversations).every(conv => conv.length === 0); return ( <> {t('playground.outputMode')} ); }; export default PlaygroundHeader;