=> {
await new Promise(resolve => setTimeout(resolve, 500));
const filtered = sampleUsers.filter(
user =>
user.label.toLowerCase().includes(query.toLowerCase()) ||
user.description?.toLowerCase().includes(query.toLowerCase())
);
return filtered;
}, []);
return (
(
No users found matching "{query}"
)
}}
/>
);
};
export const MultiLineEmpty: StoryFn = () => {
const [activeId, setActiveId] = useState(fakeSessions[0].id);
const [sessions, setSessions] = useState(fakeSessions);
return (
);
};
export const MultiLineWithContent: StoryFn = () => {
const [activeId, setActiveId] = useState(fakeSessions[0].id);
const [sessions, setSessions] = useState(fakeSessions);
const defaultMultiLineText = `This is line one of the input.
This is line two of the input.
This is line three of the input.
This is line four of the input.
This is line five - you should scroll to see this.
This is line six - still scrolling!`;
return (
);
};