// in posts.js import * as React from "react"; import { List, Datagrid, Edit, Create, SimpleForm, DateField, TextField, EditButton, TextInput, DateInput, useRecordContext } from 'react-admin'; import BookIcon from '@mui/icons-material/Book'; export const PostIcon = BookIcon; export const PostList = () => ( ); const PostTitle = () => { const record = useRecordContext(); return Post {record ? `"${record.title}"` : ''}; }; export const PostEdit = () => ( }> ); export const PostCreate = () => ( );