diff --git a/client/src/components/Overview/StyleSelector.jsx b/client/src/components/Overview/StyleSelector.jsx
index 96b45bc..aab88eb 100644
--- a/client/src/components/Overview/StyleSelector.jsx
+++ b/client/src/components/Overview/StyleSelector.jsx
@@ -1,7 +1,47 @@
import React from 'react';
+import PropTypes from 'prop-types';
-function StyleSelector() {
- return null;
+function Style({ style, handleStyleSelect, selected }) {
+ // TODO: handle selected
+ return (
+
handleStyleSelect(style.style_id)}>
+
![{`${style.name}]({style.photos[0].thumbnail_url})
+
+ );
}
+Style.propTypes = {
+ style: PropTypes.object.isRequired,
+ selected: PropTypes.bool.isRequired,
+ handleStyleSelect: PropTypes.func.isRequired,
+};
+
+function StyleSelector({ styles, selectedStyleId, handleStyleSelect }) {
+ // TODO: use color-thief to extract average color of thumbnails server-side
+ const stylesArray = styles.map((style) => (
+
+ ));
+
+ return (
+
+ { stylesArray }
+
+ );
+}
+
+StyleSelector.propTypes = {
+ styles: PropTypes.array.isRequired,
+ selectedStyleId: PropTypes.number.isRequired,
+ handleStyleSelect: PropTypes.func.isRequired,
+};
+
export default StyleSelector;