import React from 'react'; import { Text, IconButton } from 'soapbox/components/ui'; import HStack from 'soapbox/components/ui/hstack/hstack'; import Stack from 'soapbox/components/ui/stack/stack'; interface IWidgetTitle { title: string | React.ReactNode, } const WidgetTitle = ({ title }: IWidgetTitle): JSX.Element => ( {title} ); const WidgetBody: React.FC = ({ children }): JSX.Element => ( {children} ); interface IWidget { title: string | React.ReactNode, onActionClick?: () => void, actionIcon?: string, actionTitle?: string, } const Widget: React.FC = ({ title, children, onActionClick, actionIcon = require('@tabler/icons/icons/arrow-right.svg'), actionTitle, }): JSX.Element => { return ( {onActionClick && ( )} {children} ); }; export default Widget;