CoastalCommitsPastes/client/app/components/badges/visibility-badge/index.tsx
2022-11-13 23:02:31 -08:00

14 lines
320 B
TypeScript

import type { PostVisibility } from "@lib/types"
import Badge from "../badge"
type CastPostVisibility = PostVisibility | string
type Props = {
visibility: CastPostVisibility
}
const VisibilityBadge = ({ visibility }: Props) => {
return <Badge type={"primary"}>{visibility}</Badge>
}
export default VisibilityBadge