import { Composable } from "./IComposable"; import { LibraryItem as LibItem } from "../lib/prompt"; import AddCircleOutlineOutlinedIcon from '@mui/icons-material/AddCircleOutlineOutlined'; import { Button } from "@material-ui/core"; export interface StyleProps { item: LibItem onInsertItem: (item: LibItem) => void; } export function LibraryItem(props: StyleProps) { const { item, onInsertItem } = props return (
{ item.name ? (
{item.name} - {item.prompt}
) : (
{item.prompt}
) }
) as Composable; };