22 lines
514 B
TypeScript
22 lines
514 B
TypeScript
|
|
/*
|
||
|
|
* Vencord, a Discord client mod
|
||
|
|
* Copyright (c) 2025 Vendicated and contributors
|
||
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
*/
|
||
|
|
|
||
|
|
import "./Divider.css";
|
||
|
|
|
||
|
|
import { classes } from "@utils/misc";
|
||
|
|
import type { ComponentPropsWithoutRef } from "react";
|
||
|
|
|
||
|
|
export type DividerProps = ComponentPropsWithoutRef<"hr">;
|
||
|
|
|
||
|
|
export function Divider({ className, ...restProps }: DividerProps) {
|
||
|
|
return (
|
||
|
|
<hr
|
||
|
|
className={classes("vc-divider", className)}
|
||
|
|
{...restProps}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|