mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
36 lines
712 B
TypeScript
36 lines
712 B
TypeScript
|
import { ScopeDecorator } from './decorators/scope'
|
||
|
import { FeedbackBadge } from '@/shared/components/feedback-badge'
|
||
|
|
||
|
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],
|
||
|
}
|