local n=script:FindFirstAncestor("\077\097\122\101\071\101\110\101\114\097\116\111\114\080\108\117\103\105\110")local Z=n.Plugin local w=require(n:WaitForChild("\082\111\097\099\116"))local i=require(n.M)local X=require(Z.Components.DropdownMenu)local G="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\084\101\114\114\097\105\110\084\111\111\108\115\047"local K=require(Z.Components.MaterialDetails)local V=w.Component:extend("\077\097\116\101\114\105\097\108\115\068\114\111\112\100\111\119\110")local function F() end function V.init(n) end function V.didMount(n) end function V.render(n)local Z=n.props.onSelect or F local V={}for n,Z in pairs(K)do table.insert(V,{value=Z.enum;name=Z.enum.Name;image=G..Z.image})end local y=i.extend(n.props,{options=V,onSelect=function(n)Z(n)end})return w.createElement(X,y)end return V
local Root = script:FindFirstAncestor('MazeGeneratorPlugin')
local Plugin = Root.Plugin

local Roact = require(Root:WaitForChild('Roact'))
local M = require(Root.M)

local DropdownMenu = require(Plugin.Components.DropdownMenu)

local TexturePath = 'rbxasset://textures/TerrainTools/'
local MaterialDetails = require(Plugin.Components.MaterialDetails)
local MaterialsDropdown = Roact.Component:extend('MaterialsDropdown')

local function noop()
end

function MaterialsDropdown:init()
end

function MaterialsDropdown:didMount()
end

function MaterialsDropdown:render()
	local onSelect = self.props.onSelect or noop
	local options = {}

	for index, material in pairs(MaterialDetails) do
		table.insert(options, {
			value = material.enum,
			name = material.enum.Name,
			image = TexturePath .. material.image,
		})
	end

	local mergedProps = M.extend(self.props, {
		options = options,
		onSelect = function(newValue)
			onSelect(newValue)
		end,
	})

	return Roact.createElement(DropdownMenu, mergedProps)
end

return MaterialsDropdown