aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/landing/Subtitle.tsx
blob: d514f71fab883aeea39a94fee8c8360a0597c177 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * SPDX-FileCopyrightText: 2023 Kristóf Marussy
 *
 * SPDX-License-Identifier: MIT
 */

import type { ReactNode } from 'react';

import styles from './Subtitle.module.css';

export default function Subtitle({
  icon,
  children,
}: {
  icon: string;
  children?: ReactNode;
}) {
  return (
    <h3 className={styles.subtitle}>
      {icon !== undefined && <>{icon}&nbsp;</>}
      {children}
    </h3>
  );
}