import { Component } from 'react';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import IconButton from '@mui/material/IconButton';
import DragHandleIcon from '@mui/icons-material/DragHandle';
import AccountTreeIcon from '@mui/icons-material/AccountTree';
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import DeleteOutlinedIcon from '@mui/icons-material/DeleteOutlined';
import { Tile, tileBaseSx } from './Tile';
/**
* Top edit band: left = reorder handle (SortableJS), right = drop-into-subcategory
* handle (Shopify Draggable Droppable).
*/
function TopBand() {
return (
);
}
/**
* Shared grey name band spanning the middle third.
*/
function NameBand({ label, nameInput }) {
if (label == null) return null;
return (
{nameInput ?? (
{label}
)}
);
}
/**
* Bottom edit band with left/right chevron reorder buttons and a center delete.
*/
function EditBand({ onMoveLeft, onMoveRight, onDelete, canLeft, canRight }) {
return (
);
}
/**
* Category tile (normal mode): no icon, click navigates to the category.
*/
export class CategoryTile extends Tile {
renderIcon() {
return null;
}
renderLabel() {
const { label, nameInput } = this.props;
return ;
}
}
/**
* Category tile for edit mode: no ButtonBase (no ripple, no click navigation),
* always shows the bottom edit band with chevron reorder/delete actions.
*/
export class CategoryEditTile extends Component {
render() {
const { label, nameInput, editBand, sx, ...rest } = this.props;
return (
);
}
}