// This file is part of Shadcn Admin Kit (https://github.com/marmelab/shadcn-admin-kit) import type { ReferenceInputBaseProps } from "ra-core"; import { ReferenceInputBase } from "ra-core"; import { AutocompleteInput } from "./autocomplete-input"; export const ReferenceInput = (props: ReferenceInputProps) => { const { children = defaultChildren, ...rest } = props; if (props.validate && process.env.NODE_ENV !== "production") { throw new Error( " does not accept a validate prop. Set the validate prop on the child instead.", ); } return {children}; }; const defaultChildren = ; export interface ReferenceInputProps extends ReferenceInputBaseProps { /** * Call validate on the child component instead */ validate?: never; }