refactor: replace interface with type for component properties and improve code readability
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import type { JSX, SVGProps } from 'react'
|
||||
|
||||
interface NotificationIconProperties
|
||||
extends JSX.IntrinsicAttributes,
|
||||
SVGProps<SVGSVGElement> {
|
||||
type TNotificationIcon = {
|
||||
showBadge?: boolean
|
||||
}
|
||||
} & JSX.IntrinsicAttributes &
|
||||
SVGProps<SVGSVGElement>
|
||||
|
||||
export const NotificationIcon = ({
|
||||
showBadge = false,
|
||||
...properties
|
||||
}: NotificationIconProperties) => {
|
||||
}: TNotificationIcon) => {
|
||||
return (
|
||||
<svg
|
||||
width={16}
|
||||
|
||||
Reference in New Issue
Block a user