() => {
const [activeOption, setActiveOption] = useState(demoFilms[27]);
return (
<TextToggleGroup>
<TextToggle
onClick={() => setActiveOption(demoFilms[27])}
isActive={activeOption === demoFilms[27]}
>
{demoFilms[27]}
</TextToggle>
<TextToggle
onClick={() => setActiveOption(demoFilms[18])}
isActive={activeOption === demoFilms[18]}
>
{demoFilms[18]}
</TextToggle>
<TextToggle
onClick={() => setActiveOption(demoFilms[17])}
isActive={activeOption === demoFilms[17]}
>
{demoFilms[17]}
</TextToggle>
</TextToggleGroup>
)
}