/**
 * Language Selector Component
 *
 * Provides UI for switching between supported languages (English/German).
 * Uses shadcn/ui Select component.
 *
 * @author Andreas Weyer
 * @license MIT
 */

import React from 'react';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './ui/select';

const LanguageSelector = ({ currentLanguage, onLanguageChange, t }: any) => {
  return (
    <Select value={currentLanguage} onValueChange={onLanguageChange}>
      <SelectTrigger className="w-32">
        <SelectValue />
      </SelectTrigger>
      <SelectContent>
        <SelectItem value="en">{t('languageSelectorEN')}</SelectItem>
        <SelectItem value="de">{t('languageSelectorDE')}</SelectItem>
      </SelectContent>
    </Select>
  );
};

export default LanguageSelector;
