import { Component, booleanAttribute, input } from "@angular/core";
import { MappedOptionComponent } from "./option";
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
@Component({
selector: "bit-option",
template: ``,
})
export class OptionComponent implements MappedOptionComponent {
readonly icon = input();
readonly value = input.required();
readonly label = input.required();
readonly disabled = input(undefined, { transform: booleanAttribute });
}