2023-10-03 10:11:56 -04:00
|
|
|
import { ScopeDecorator } from './decorators/scope'
|
|
|
|
import { FeedbackBadge } from '@/shared/components/feedback-badge'
|
2024-10-10 03:26:18 -04:00
|
|
|
import { bsVersionDecorator } from '../../.storybook/utils/with-bootstrap-switcher'
|
2023-10-03 10:11:56 -04:00
|
|
|
|
|
|
|
export const WithDefaultText = () => {
|
|
|
|
return (
|
|
|
|
<FeedbackBadge
|
|
|
|
url="https://example.com"
|
|
|
|
id="storybook-feedback-with-text"
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export const WithCustomText = () => {
|
|
|
|
const FeedbackContent = () => (
|
|
|
|
<>
|
|
|
|
This is an example.
|
|
|
|
<br />
|
|
|
|
Click to find out more
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
|
|
|
|
return (
|
|
|
|
<FeedbackBadge
|
|
|
|
url="https://example.com"
|
|
|
|
id="storybook-feedback-with-text"
|
|
|
|
text={<FeedbackContent />}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Shared / Components / Feedback Badge',
|
|
|
|
component: FeedbackBadge,
|
|
|
|
decorators: [ScopeDecorator],
|
2024-10-10 03:26:18 -04:00
|
|
|
argTypes: {
|
|
|
|
...bsVersionDecorator.argTypes,
|
|
|
|
},
|
2023-10-03 10:11:56 -04:00
|
|
|
}
|