import { makeStyles } from '@material-ui/styles'; import React from 'react'; import LanguageListItem from './LanguageListItem'; interface ILanguageListProps { items: Array; onLanguageSelected: (lang: string) => void; selectedLanguage: string; } const useStyles = makeStyles(() => { return { itemsContainer: { display: 'flex', flexFlow: 'column' } }; }); interface LanguageItem { id: string; lang: string; selected: boolean; } /** * Component that renders the security options dialog. * * @returns {React$Element} */ const LanguageList = ({ items, onLanguageSelected }: ILanguageListProps) => { const styles = useStyles(); const listItems = items.map(item => ()); return (
{listItems}
); }; export default LanguageList;