2025-04-01 16:15:20 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { TipIcon, ChatIcon, WarningIcon } from '@freesewing/react/components/Icon'
|
|
|
|
|
|
|
|
export const MiniTip = ({ children }) => (
|
2025-04-18 08:07:13 +00:00
|
|
|
<div className="tw:flex tw:flex-row tw:border tw:border-success tw:rounded">
|
|
|
|
<div className="tw:bg-success tw:text-success-content tw:p-1 tw:rounded-l tw:flex tw:flex-row tw:items-center">
|
|
|
|
<TipIcon className="tw:w-6 tw:h-6 tw:text-success-content" />
|
2025-04-01 16:15:20 +02:00
|
|
|
</div>
|
2025-04-18 08:07:13 +00:00
|
|
|
<div className="tw:p-1 tw:px-2 tw:text-sm tw:font-medium tw:bg-success/10 tw:grow tw:rounded-r">
|
2025-04-01 16:15:20 +02:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
|
|
|
|
export const MiniNote = ({ children }) => (
|
2025-04-18 08:07:13 +00:00
|
|
|
<div className="tw:flex tw:flex-row tw:border tw:border-info tw:rounded">
|
|
|
|
<div className="tw:bg-info tw:text-info-content tw:p-1 tw:rounded-l tw:flex tw:flex-row tw:items-center">
|
|
|
|
<ChatIcon className="tw:w-6 tw:h-6 tw:text-info-content" />
|
2025-04-01 16:15:20 +02:00
|
|
|
</div>
|
2025-04-18 08:07:13 +00:00
|
|
|
<div className="tw:p-1 tw:px-2 tw:text-sm tw:font-medium tw:bg-info/10 tw:grow tw:rounded-r">
|
2025-04-01 16:15:20 +02:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
|
|
|
|
export const MiniWarning = ({ children }) => (
|
2025-04-18 08:07:13 +00:00
|
|
|
<div className="tw:flex tw:flex-row tw:border tw:border-warning tw:rounded">
|
|
|
|
<div className="tw:bg-warning tw:text-warning-content tw:p-1 tw:rounded-l tw:flex tw:flex-row tw:items-center">
|
|
|
|
<WarningIcon className="tw:w-6 tw:h-6 tw:text-warning-content" />
|
2025-04-01 16:15:20 +02:00
|
|
|
</div>
|
2025-04-18 08:07:13 +00:00
|
|
|
<div className="tw:p-1 tw:px-2 tw:text-sm tw:font-medium tw:bg-warning/10 tw:grow tw:rounded-r">
|
2025-04-01 16:15:20 +02:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|