summaryrefslogtreecommitdiff
path: root/front/src/components/post/Card.tsx
blob: 9309423e08401fce0e0cc6e3858e6459c9ab5405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Icon from "@/components/Icon";
import type { IconName } from "@/components/Icon";

export default function ({ children, logo, cn}: { cn?: string; logo: IconName; children: any }) {
  const className = "trill-post-card" + (cn ? ` ${cn}`: "")
  return (
    <div className={className}>
      <Icon name={logo} size={20} className="trill-post-card-logo" />
      {children}
    </div>
  );
}