import React from 'react' import { type Meta } from '@storybook/react-vite' import { useIsClient } from '..' import { DocsTemplate } from '../../../.storybook' import OutputForDemo from '../../../.storybook/templates/OutputForDemo' export const Example = (): React.JSX.Element => { const isClient = useIsClient() return ( {isClient.toString()} } /> ) } Example.storyName = 'useIsClient' Example.args = {} export default { title: 'Hooks/useIsClient', component: Example, parameters: { viewMode: 'docs', previewTabs: { canvas: { hidden: true }, }, docs: { page: () => ( <> This hook returns a boolean value; true if the client is available and false if it is not. , ]} noArgs /> ), }, }, } as Meta