16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import * as React from "bloatless-react";
|
|
|
|
export function Option(text: string, value: string, selectedOnCreate: boolean) {
|
|
return (
|
|
<option value={value} toggle:selected={selectedOnCreate}>
|
|
{text}
|
|
</option>
|
|
);
|
|
}
|
|
|
|
export const StringToOption: React.StateItemConverter<string> = (
|
|
string: string
|
|
) => {
|
|
return Option(string, string, false);
|
|
};
|