diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/src/components/icons/brand.tsx | 14 | ||||
| -rw-r--r-- | apps/web/src/components/icons/types.ts | 5 | ||||
| -rw-r--r-- | apps/web/src/components/icons/ui.tsx | 55 |
3 files changed, 23 insertions, 51 deletions
diff --git a/apps/web/src/components/icons/brand.tsx b/apps/web/src/components/icons/brand.tsx index 26aabf86..91be84bf 100644 --- a/apps/web/src/components/icons/brand.tsx +++ b/apps/web/src/components/icons/brand.tsx @@ -1,4 +1,6 @@ -export function OcVercelIcon({ className }: { className?: string }) { +import type { IconProps } from "./types"; + +export function OcVercelIcon({ className }: IconProps) { return ( <svg className={className} @@ -17,10 +19,7 @@ export function OcVercelIcon({ className }: { className?: string }) { export function OcMarbleIcon({ className = "", size = 32, -}: { - className?: string; - size?: number; -}) { +}: IconProps) { return ( <svg xmlns="http://www.w3.org/2000/svg" @@ -43,10 +42,7 @@ export function OcMarbleIcon({ export function OcDataBuddyIcon({ className = "", size = 32, -}: { - className?: string; - size?: number; -}) { +}: IconProps) { return ( <svg xmlns="http://www.w3.org/2000/svg" diff --git a/apps/web/src/components/icons/types.ts b/apps/web/src/components/icons/types.ts new file mode 100644 index 00000000..cdcb8797 --- /dev/null +++ b/apps/web/src/components/icons/types.ts @@ -0,0 +1,5 @@ +export interface IconProps { + size?: number; + className?: string; + strokeWidth?: number; +}
\ No newline at end of file diff --git a/apps/web/src/components/icons/ui.tsx b/apps/web/src/components/icons/ui.tsx index 819276de..e5ba731e 100644 --- a/apps/web/src/components/icons/ui.tsx +++ b/apps/web/src/components/icons/ui.tsx @@ -1,10 +1,9 @@ +import type { IconProps } from "./types";
+
export function OcVideoIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={size}
@@ -34,10 +33,7 @@ export function OcVideoIcon({ export function OcCheckerboardIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={size}
@@ -68,10 +64,7 @@ export function OcCheckerboardIcon({ export function OcSlidersVerticalIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={size}
@@ -113,10 +106,7 @@ export function OcSlidersVerticalIcon({ export function OcSocialIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={Math.round(size * (38 / 24))}
@@ -162,10 +152,7 @@ export function OcSocialIcon({ export function OcTextWidthIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={Math.round((size * 17) / 24)}
@@ -190,10 +177,7 @@ export function OcTextWidthIcon({ export function OcTextHeightIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={Math.round((size * 20) / 23)}
@@ -218,10 +202,7 @@ export function OcTextHeightIcon({ export function OcFontIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+ }: IconProps) {
return (
<svg
width={size}
@@ -244,11 +225,7 @@ export function OcShapesIcon({ className = "",
size = 32,
strokeWidth = 1.5,
-}: {
- className?: string;
- size?: number;
- strokeWidth?: number;
-}) {
+}: IconProps) {
return (
<svg
width={size}
@@ -288,10 +265,7 @@ export function OcShapesIcon({ export function OcMirrorIcon({
className = "",
size = 32,
-}: {
- className?: string;
- size?: number;
-}) {
+}: IconProps) {
return (
<svg
width={size}
@@ -329,11 +303,7 @@ export function OcSquarePlusIcon({ className = "",
size = 32,
strokeWidth = 1.5,
-}: {
- className?: string;
- size?: number;
- strokeWidth?: number;
-}) {
+}: IconProps) {
return (
<svg
width={size}
@@ -383,3 +353,4 @@ export function OcSquarePlusIcon({ </svg>
);
}
+
|
