// Copyright 2019-2024 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { styled } from '../styled.js'; import { Button } from './index.js'; interface ButtonWithSubtitleProps { title: string; subTitle: string; children?: string; to: string; } export default function ButtonWithSubtitle ({ children, subTitle, title, to }: ButtonWithSubtitleProps): React.ReactElement { return (

{title}

{subTitle} {children}
); } const StyledButton = styled(Button)` button { padding-top: 0; padding-bottom: 0; } p { margin: 0; font-size: 15px; line-height: 20px; } span { display: block; font-size: 12px; line-height: 16px; } `;