@typeparam CFile

<div class="filesWithEditor">

	<div class="files">

		<div class="field is-horizontal sameMarginBottom">
			<div class="control has-icons-left">
				<div class="select is-small is-rounded">
					<select @onchange="e => OnFilterClick(e.Value.ToString())">
						@foreach (var filter in Filters)
						{
							<option value="@filter">@filter</option>
						}
					</select>
				</div>
				<span class="icon is-small is-left">
					<i class="mdi mdi-folder-cog-outline"></i>
				</span>
			</div>
			<p class="control has-icons-left">
				<input formnovalidate @oninput="e => SearchInputChanged(e.Value.ToString())" class="input is-rounded is-small" type="text" placeholder="Search...">
				<span class="icon is-small is-left">
					<i class="mdi mdi-search-web"></i>
				</span>
			</p>
		</div>

		<div class="filesList neomorphSmall borderRSmall sameMarginBottom">
			<aside class="menu">
				<ul class="menu-list">
					@foreach (var file in Files)
					{
						<li @onclick="e => OnFileClick(e,file)" @key="file" class="@file.IsVisible">
							<FileItem File="file" @key="file"></FileItem>
						</li>
					}
				</ul>
			</aside>
		</div>

		<div class="buttons are-small">
			<button class="button is-rounded is-primary" @onclick="OnAddDialog">
				<span class="icon is-small">
					<i class="mdi mdi-plus-box-outline"></i>
				</span>
				<span>Add</span>
			</button>
			<button class="button is-rounded is-warning" @onclick="OnUpdateDialog">
				<span class="icon is-small">
					<i class="mdi mdi-pencil-box-outline"></i>
				</span>
				<span>Update</span>
			</button>
			<button class="button is-rounded is-danger" @onclick="OnDeleteDialog">
				<span class="icon is-small">
					<i class="mdi mdi-minus-box-outline"></i>
				</span>
				<span>Delete</span>
			</button>
		</div>

	</div>

	<div class="tile is-parent is-vertical is-8">
		@Editor
	</div>



</div>

