07f791d
ZhenYi
refactor: replace Preact with React imports for improved consistency across components
07f791d
import type { LucideIcon } from 'lucide-react'
import { navigate } from '@/shared/lib'
import { Button } from './button'
import { Heading } from './heading'
export function FlowRequired({
title,
description,
actionLabel,
actionTo,
replace = false,
icon,
}: {
title: string
description: string
actionLabel: string
actionTo: string
replace?: boolean
icon?: LucideIcon
}) {
return (
<>
<Heading title={title} description={description} icon={icon} />
<Button type="button" onClick={() => navigate(actionTo, replace)}>
{actionLabel}
</Button>
</>
)
}