feat(marketing): Refactor marketing wizard steps and add data collection methods
- Moved all marketing wizard step components to `create/_components` directory - Added `collectData` static method to each step component for data retrieval - Reorganized file structure to improve component modularity - Prepared steps for dynamic data collection in wizard workflow - Added VSCode settings file for project configuration - Introduced new CMS-related components and services - Updated API endpoints and added new query hooks
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { TableCell, TableRow } from "@/components/ui/table";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
interface EmptyListWrapperProps<T> {
|
||||
list: T[];
|
||||
emptyMessage: string;
|
||||
columns: string[];
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
function EmptyListWrapper<T>({
|
||||
list,
|
||||
emptyMessage,
|
||||
columns,
|
||||
children,
|
||||
}: EmptyListWrapperProps<T>) {
|
||||
if (!list.length) {
|
||||
return (
|
||||
<TableRow>
|
||||
<TableCell className="text-center" colSpan={columns.length * 100}>
|
||||
<h2>{emptyMessage}</h2>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
);
|
||||
}
|
||||
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
export default EmptyListWrapper;
|
||||
Reference in New Issue
Block a user