import React from 'react';
import SettingsPage from './pages/Settings';
{% for model in models %}
import {{ model.name }}Page from './pages/{{ model.module_name }}';
import {{ model.name }}DetailPage from './pages/{{ model.module_name }}/detail';
{% endfor %}

export const GeneratedRoutes = [
  {
    path: '/settings',
    element: <SettingsPage />,
  },
{% for model in models %}
  {
    path: '/{{ model.module_name }}s',
    element: <{{ model.name }}Page />,
  },
  {
    path: '/{{ model.module_name }}s/:id',
    element: <{{ model.name }}DetailPage />,
  },
{% endfor %}
];
