import React, { FC, useState } from "react"; import { ComponentMeta, ComponentStory } from "@storybook/react"; import { MockPage } from "components/Page"; import { useHAEntities } from "services/haService/HAEntities"; const Test: FC<{ onRender: () => void }> = ({ onRender }) => { const [searchTerm, setSearch] = useState(""); const conn = useHAEntities(); onRender && onRender(); return ( <> setSearch(e.target.value.toLowerCase())} /> ); }; export default { title: "Services/HA Entities", component: Test, parameters: { actions: { argTypesRegex: "^on.*" } }, args: {}, } as ComponentMeta; export const Base: ComponentStory = (props) => { return ( ); };