import { DemoStory } from '../demo/demo-types'; import { Redirect, RedirectProps } from './redirect'; export const redirectDemo: DemoStory = { id: 'redirect-demo', text: 'Redirect Demo', args: { title: 'Redirecting you soon...', url: 'about', delaySeconds: 3, }, argTypes: { title: { control: 'text', description: 'Text shown while waiting' }, url: { control: 'text', description: 'URL to redirect to' }, delaySeconds: { control: 'number', description: 'Delay before redirecting' }, }, render: (args) => { return (

This component automatically changes the `window.location.href` after the specified delay. In this demo, the iframe will redirect itself to `{args.url}` after {args.delaySeconds} seconds.

); }, code: `import { Redirect } from 'lupine.components/components/redirect'; `, };