Files
CT/src/View/Components/option.tsx
T

16 lines
365 B
TypeScript
Raw Normal View History

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);
};