import AutoStoriesIcon from '@mui/icons-material/AutoStories'; import ReviewsIcon from '@mui/icons-material/Reviews'; import { Rating, Stack } from '@mui/material'; import React from 'react'; import type { InputProps } from 'react-admin'; import { AutocompleteInput, Create, Datagrid, DateField, Edit, Labeled, List, NumberField, ReferenceArrayField, ReferenceField, ReferenceInput, Show, SimpleForm, SimpleList, SimpleShowLayout, TabbedShowLayout, TextField, TextInput, WithRecord, WrapperField, defaultDarkTheme, defaultLightTheme, required, useInput, } from 'react-admin'; import ResourceGuesser from '../../core/ResourceGuesser'; import FieldGuesser from '../../field/FieldGuesser'; import { HydraAdmin } from '../../hydra'; import InputGuesser from '../../input/InputGuesser'; import DevtoolsLayout from '../layout/DevtoolsLayout'; export default { title: 'Admin/Custom/AdvancedCustomization', parameters: { layout: 'fullscreen', }, }; const BookCreate = () => ( ); const BookEdit = () => ( ); const BookShow = () => ( review.author .split(' ') .map((name: string) => name[0]) .join('') } // eslint-disable-next-line react/no-unstable-nested-components tertiaryText={(review) => ( )} /> ); const BookList = () => ( ); const RatingInput = (props: InputProps) => { const { field } = useInput(props); return ( { field.onChange(value); }} /> ); }; const filterToBookQuery = (searchText: string) => ({ title: `%${searchText}%`, }); const ReviewCreate = () => ( ); const ReviewEdit = () => ( ); const ReviewShow = () => ( ( )} /> ); const ReviewList = () => ( ( )} /> ); export const AdvancedCustomization = () => ( );